2015-12-02 206 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