mac 安装bcrypt出现的问题及解决办法
发布于 4个月前 作者 jason1213 552 次浏览 来自 分享

错误信息: npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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 搞了一下午。。。

4 回复

。。。。。。。。。。。。

。。。。。。。。。。。。

node-gyp 是 npm 安装就带来的吧。

新手,可能瞎搞给搞的卸载了

回到顶部