安装石膏板时出错

安装石膏板时出错

我正在尝试安装石膏板,但遇到了很多错误

C:\Users\zach\Desktop\Node.js\drywall\node_modules\bcrypt>if not defined npm_con      fig_node_gyp (node "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:116:14) 
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node          -gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej      s\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\zach\Desktop\Node.js\drywall\node_modules\bcrypt
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\               node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
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!     C:\Users\zach\Desktop\Node.js\drywall\npm-debug.log

我应该担心这些吗?如果有人知道如何解决这些错误的指南(我搜索了很多但找不到),请告诉我。谢谢!

答案1

看起来,由于缺少对 python 的依赖,bcrypt 的配置/安装步骤失败了。

gyp ERR!stack 错误:找不到 Python 可执行文件“python”,您可以设置 PYT HON 环境变量。

bcrypt0.8.5 具有以下依赖项,

  • Node.js 库
  • 节点gyp
  • Python 2.x
  • OpenSSL

-来源

确保所有 bcrypts 依赖项都已安装,然后重试。

相关内容