跳到主要内容
CNode

mac 安装bcrypt出现的问题及解决办法

分享
Jjason1213发布于 12 年前最后回复 12 年前
458510

错误信息: 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)

J
jason1213#412 年前

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

L
leapon#312 年前

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

A
airyland#212 年前

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

A
alsotang#112 年前

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

参与回复

登录后即可参与回复。登录