为了账号安全,请及时绑定邮箱和手机立即绑定

win 8 nodejs npm 安装 bcrypt 出错

http://img1.sycdn.imooc.com//55cabc7a0001879606420674.jpg

$ npm install bcrypt --save

npm WARN package.json movie@0.2.0 No README data

-

> bcrypt@0.8.4 install d:\feng\nodejs\movie\node_modules\bcrypt

> node-gyp rebuild



d:\feng\nodejs\movie\node_modules\bcrypt>if not defined npm_config_node_gyp (nod

e "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules

\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT

HON env variable.

gyp ERR! stack     at failNoPython (c:\Program Files\nodejs\node_modules\npm\nod

e_modules\node-gyp\lib\configure.js:114:14)

gyp ERR! stack     at c:\Program Files\nodejs\node_modules\npm\node_modules\node

-gyp\lib\configure.js:69:11

gyp ERR! stack     at FSReqWrap.oncomplete (evalmachine.<anonymous>:95:15)

gyp ERR! System Windows_NT 6.3.9600

gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu

les\\node-gyp\\bin\\node-gyp.js" "rebuild"

gyp ERR! cwd d:\feng\nodejs\movie\node_modules\bcrypt

gyp ERR! node -v v0.12.7

gyp ERR! node-gyp -v v2.0.1

gyp ERR! not ok

npm ERR! Windows_NT 6.3.9600

npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\

node_modules\\npm\\bin\\npm-cli.js" "install" "bcrypt" "--save"

npm ERR! node v0.12.7

npm ERR! npm  v2.11.3

npm ERR! code ELIFECYCLE


npm ERR! bcrypt@0.8.4 install: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the bcrypt@0.8.4 install script 'node-gyp rebuild'.

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! Please include the following file with any support request:

npm ERR!     d:\feng\nodejs\movie\npm-debug.log



正在回答

2 回答

安装python2.7解决

0 回复 有任何疑惑可以回复我~

windows 使用bcrypt-nodejs 代替吧  windows 依赖项太多 有python visualStudio 还有自己看官方文档吧

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
node建站攻略(二期)——网站升级
  • 参与学习       51940    人
  • 解答问题       408    个

帮助你深入前后端开发留下的迷惑,为进一步自学打下基础

进入课程

win 8 nodejs npm 安装 bcrypt 出错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信