win8 nodejs安装bcrypt 出错 npm install bcrypt --save
发布于 42分钟前 作者 feng2qin 16 次浏览 来自 问答

npm WARN package.json [email protected] No README data |

[email protected] 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! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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

QQ截图20150812110915.png

回到顶部