win8 nodejs安装bcrypt 出错 npm install bcrypt --save
发布于 9 年前 作者 feng2qin 6406 次浏览 最后一次编辑是 8 年前 来自 问答

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

QQ截图20150812110915.png

3 回复

换 linux 环境吧

python没安,安了之后估计又会提示找不到C++的组件,然后又要安个VS

      with
      [
          T=v8::Object
      ]
 正在创建库  \node_modules\bcrypt\build\Release\bcrypt_lib.lib 和对象  \node_modules\

bcrypt
build\Release\bcrypt_lib.exp 正在生成代码 已完成代码的生成 bcrypt_lib.vcxproj -> \node_modules\bcrypt\build\Release\bcrypt_lib.node bcrypt@0.8.5 node_modules\bcrypt ├── bindings@1.2.1 └── nan@2.0.5

回到顶部