我无法安装任何需要node-gyp
. 错误信息是这样的
$ npm install node-protobuf 在 22:43:57 尝试注册请求尝试 1 的信息 http 获取 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 安装/home/whs/node_modules/node-protobuf > 节点 gyp 重建 吉普错误!构建错误 吉普错误!堆栈错误:未找到:制作 吉普错误!堆栈在 F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28) 吉普错误!堆栈在 E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29) 吉普错误!堆栈在 /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16 吉普错误!堆栈在 Object.oncomplete (fs.js:107:15) 吉普错误!系统 Linux 2.6.32-5-amd64 吉普错误!命令“节点”“/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js”“重建” 吉普错误!cwd /home/whs/node_modules/node-protobuf 吉普错误!节点 -v v0.10.22 吉普错误!节点-gyp -v v0.12.1 吉普错误!不好 npm 错误!node-protobuf@1.0.8 安装:`node-gyp 重建` npm 错误!退出状态 1 npm 错误! npm 错误!在 node-protobuf@1.0.8 安装脚本中失败。 npm 错误!这很可能是 node-protobuf 包的问题, npm 错误!不是 npm …