错误信息:
npm ERR! bcrypt@0.8.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.0 install script.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command “/Users/baiyu/.nvm/v0.10.32/bin/node” “/Users/baiyu/.nvm/v0.10.32/bin/npm” “install” “bcrypt” "–save-dev"
npm ERR! cwd /Users/baiyu/Projects/Node/imooc
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
解决办法:
sudo npm install -g node-gyp
搞了一下午。。。
mac 安装bcrypt出现的问题及解决办法
发布于 11 年前 作者 jason1213 5646 次预览 最后一次回复是 11 年前 来自 分享
4 回复
。。。。。。。。。。。。
。。。。。。。。。。。。
node-gyp 是 npm 安装就带来的吧。
新手,可能瞎搞给搞的卸载了