【问题标题】:npm install becrypt failed Debien weezynpm install bcrypt Debian wheezy 失败
【发布时间】:2015-12-02 20:48:32
【问题描述】:

我无法在 debian wheezy 上安装 becrypt。尝试使用命令“npm install becrypt”安装时出现错误。

这样的错误

 npm install bcrypt
/
> bcrypt@0.8.5 install /home/abdulmanaf/test/node_modules/bcrypt
> node-gyp rebuild

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:78:19)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:82:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:93:16
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:95:15)
gyp ERR! System Linux 3.16.0-0.bpo.4-amd64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/abdulmanaf/test/node_modules/bcrypt
gyp ERR! node -v v0.12.8
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm ERR! Linux 3.16.0-0.bpo.4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "bcrypt"
npm ERR! node v0.12.8
npm ERR! npm  v2.14.9
npm ERR! code ELIFECYCLE

npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the bcrypt@0.8.5 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!     /home/abdulmanaf/test/node_modules/npm-debug.log

与此相关的实际问题是什么?

【问题讨论】:

  • gyp ERR! stack Error: not found: make: 安装 make?

标签: node.js npm debian node-modules


【解决方案1】:

您需要构建bcrypt > 0.7.7 是:

apt-get install python make g++

bcrypt 依赖项

  • NodeJS
  • 节点-gyp
  • Windows 用户需要在其 Visual Studio 实例中安装 c# 和 c++ 选项。
  • Python 2.x
  • OpenSSL - 仅当您使用

【讨论】:

    【解决方案2】:

    如果您阅读错误行,您会发现没有找到make。要安装 make,您可以运行以下命令:

    $ sudo apt-get install make build-essential
    

    【讨论】:

      猜你喜欢
      • 2020-11-05
      • 1970-01-01
      • 2017-11-11
      • 1970-01-01
      • 2016-01-22
      • 2019-02-23
      • 2017-06-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多