2015-12-02 181 views
0

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

错误这样

npm install bcrypt 
/ 
> [email protected] 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! [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!  /home/abdulmanaf/test/node_modules/npm-debug.log 

这有什么相关的实际问题?

+1

'gyp ERR!堆栈错误:未找到:make':install make? –

回答

1

所有你需要建立bcrypt> 0.7.7是:

apt-get install python make g++ 

bcrypt依赖

  • 的NodeJS
  • 节点GYP
  • Windows用户将需要的选项用于安装Visual Studio Studio的c#和C++。
  • Python 2.x
  • OpenSSL - 只有在使用版本< = 0.7.7时才需要构建bcrypt项目。否则,我们对种子数据使用内置节点加密绑定(它使用与我们相同的OpenSSL代码路径,但没有外部依赖)。
0

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

$ sudo apt-get install make build-essential