错误:找不到:make
我无法安装任何需要node-gyp
软件包。 错误消息是这样的
$ npm install node-protobuf 信息尝试registry请求尝试1在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 > node-protobuf@1.0.8 install / home / whs / node_modules / node-protobuf > node-gyp重build gyp ERR! build立错误 gyp ERR! 堆栈错误:找不到:make gyp ERR! 在F堆栈(/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) gyp ERR! 在E堆栈(/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) gyp ERR! 在/usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16处堆叠 gyp ERR! 在Object.oncomplete(fs.js:107:15) gyp ERR! 系统Linux 2.6.32-5-amd64 gyp ERR! 命令“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! 不好 npm ERR! node-protobuf@1.0.8安装:`node-gyp rebuild` npm ERR! 退出状态1 npm ERR! npm ERR! 在node-protobuf@1.0.8安装脚本失败。 npm ERR! 这很可能是node-protobuf包的一个问题, npm ERR! 而不是npm本身。 npm ERR! 告诉作者这在您的系统上失败: npm ERR! 节点gyp重build npm ERR! 您可以通过 npm ERR! npm所有者ls节点protobuf npm ERR! 上面可能还有其他的日志输出。 npm ERR! 系统Linux 2.6.32-5-amd64 npm ERR! 命令“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! 代码ELIFECYCLE npm ERR! npm ERR! 其他日志logging详细信息可以在 npm ERR! /home/whs/npm-debug.log npm ERR! 不好的代码0
我也尝试了protobuf
包,并得到完全相同的结果。
大多数search结果表示,这个错误是由于缺lessmake
但在我的情况下,我已经安装。 节点安装甚至是在机器上手动build立的。
附加信息:
- path:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
- 使:GNU Make 3.81安装在
/usr/bin/make
(来自官方的Debian软件包) - 发行:Debian 6.0.8
- Arch:amd64
- build设必不可less的包:安装
- 节点:从源手动构build
- 安装非gyp软件包:正常工作
我发现我在/usr/bin/make
上设置了0754权限,并且由于用户的主要组跳过文件的bug与make
。 我已经在节点中提交了一个bug 。