npm install bcrypt 失败 Debian wheezy
npm install becrypt failed Debien weezy
我无法在 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
与此相关的实际问题是什么?
构建 bcrypt
> 0.7.7 所需的全部是:
apt-get install python make g++
bcrypt 依赖关系:
- NodeJS
- node-gyp
- Windows 用户需要在 visual studio 实例中安装 c# 和 c++ 选项。
- Python 2.x
- OpenSSL - 如果您使用的版本 <= 0.7.7,则只需要构建 bcrypt 项目。否则,我们将对种子数据使用内置节点加密绑定(它使用与我们相同的 OpenSSL 代码路径,但没有外部依赖性)。
如果您阅读错误行,您会发现 make
未找到。要安装 make,您可以 运行 以下命令:
$ sudo apt-get install make build-essential
我无法在 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
与此相关的实际问题是什么?
构建 bcrypt
> 0.7.7 所需的全部是:
apt-get install python make g++
bcrypt 依赖关系:
- NodeJS
- node-gyp
- Windows 用户需要在 visual studio 实例中安装 c# 和 c++ 选项。
- Python 2.x
- OpenSSL - 如果您使用的版本 <= 0.7.7,则只需要构建 bcrypt 项目。否则,我们将对种子数据使用内置节点加密绑定(它使用与我们相同的 OpenSSL 代码路径,但没有外部依赖性)。
如果您阅读错误行,您会发现 make
未找到。要安装 make,您可以 运行 以下命令:
$ sudo apt-get install make build-essential