Node.js 节点gyp生成和bcrypt安装期间出错
我试图使用Node.js 节点gyp生成和bcrypt安装期间出错,node.js,bcrypt,node-gyp,Node.js,Bcrypt,Node Gyp,我试图使用npm install bcrypt在joyent的smartos中安装bcrypt,但出现了一个错误。然后,在讨论的正确答案的帮助下,我尝试了,但在执行node gyp build时,由于以下错误,我再次卡住了 问题可能是什么?如何摆脱 gyp info it worked if it ends with ok gyp info using node-gyp@0.13.0 gyp info using node@0.10.24 | sunos | x64 gyp ERR! build
npm install bcrypt
在joyent的smartos中安装bcrypt,但出现了一个错误。然后,在讨论的正确答案的帮助下,我尝试了,但在执行node gyp build
时,由于以下错误,我再次卡住了
问题可能是什么?如何摆脱
gyp info it worked if it ends with ok
gyp info using node-gyp@0.13.0
gyp info using node@0.10.24 | sunos | x64
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/node-gyp/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/node-gyp/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/node-gyp/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/bin/node-gyp" "build"
gyp ERR! cwd /home/admin/workbench/dev/node.bcrypt.js
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
你确定你已经正确安装了make、gcc、g++、Python2.x和其他构建工具吗?在smartos中安装了gmake(用于make)和gcc47-4.7.3nb1(用于g++)之后,现在我可以直接使用npm安装bcrypt(npm安装bcrypt)。不需要像我查询中的链接中建议的那样解决问题。感谢mscdex的建议。