4
我無法安裝任何需要node-gyp
的軟件包。錯誤消息是這樣的錯誤:找不到:make
$ npm install node-protobuf info trying registry request attempt 1 at 22:43:57 http GET https://registry.npmjs.org/node-protobuf http 200 https://registry.npmjs.org/node-protobuf npm http GET https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgz npm http 200 https://registry.npmjs.org/node-protobuf/-/node-protobuf-1.0.8.tgz > [email protected] install /home/whs/node_modules/node-protobuf > node-gyp rebuild gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16 gyp ERR! stack at Object.oncomplete (fs.js:107:15) gyp ERR! System Linux 2.6.32-5-amd64 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/whs/node_modules/node-protobuf gyp ERR! node -v v0.10.22 gyp ERR! node-gyp -v v0.12.1 gyp ERR! not ok npm ERR! [email protected] install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is most likely a problem with the node-protobuf 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 node-protobuf npm ERR! There is likely additional logging output above. npm ERR! System Linux 2.6.32-5-amd64 npm ERR! command "node" "/usr/local/bin/npm" "install" "node-protobuf" npm ERR! cwd /home/whs/ npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.15 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/whs/npm-debug.log npm ERR! not ok code 0
我也試過protobuf
包,並得到完全相同的結果。
大多數搜索結果表明,這個錯誤是從缺少make
,但在我的情況下,我已經使安裝。節點安裝甚至可以在機器上從源手動構建。
附加信息:
- 路徑:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
- 品牌:GNU使安裝在
/usr/bin/make
(來自官方Debian軟件包) - 發行3.81:Debian的6.0.8
- 拱門:AMD64
- 構建必備軟件包:安裝
- 節點:從源手動構建
- 安裝非GYP包:正常工作
謝謝!我想了解一個多小時 - 最後我知道我沒有默認安裝:D謝謝 –