在Mint 17.2上使用npm install安装node-gyp和node-pre-gyp错误

时间:2015-11-24 20:28:36

标签: node.js ubuntu npm node-gyp

好的,我把头发拉了出来,连续两天都被卡住了。

几个月后我再次开始研究MEAN项目,并且在npm install上遇到了大量的node-gyp错误。

如果有帮助,我可以附加整个输出,但这里是有问题的模块:

> kerberos@0.0.11 install /home/me/node/abc/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> kerberos@0.0.11 install /home/me/node/abc/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> bson@0.2.22 install /home/me/node/abc/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> bson@0.2.22 install /home/me/node/abc/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> ws@0.4.32 install /home/me/node/abc/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> ws@0.4.32 install /home/me/node/abc/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> lwip@0.0.6 install /home/me/node/abc/node_modules/blueimp-file-upload-expressjs/node_modules/lwip
> node-gyp rebuild

> v8-debug@0.4.6 install /home/me/node/abc/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build

> v8-profiler@5.2.12 install /home/me/node/abc/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build

npm ERR! Linux 3.16.0-38-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm  v2.12.1
npm ERR! code ELIFECYCLE

npm ERR! v8-profiler@5.2.12 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the v8-profiler@5.2.12 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the v8-profiler package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls v8-profiler
npm ERR! There is likely additional logging output above.

我认真尝试了我能想到的一切:

  • 清洁安装Mint 17,17.1和& 17.2
  • 使用Mint软件管理器,curl,wget和NVM安装的节点版本0.10.x - 5.1(几乎每个版本之间) (package.json想要节点0.12.x和npm 2.12.x fwiw)
  • 在每个NPM版本附近该死的
  • 尝试安装Python的diff版本以及将npm config设置为指向Python 2,2.7和3
  • 尝试全局安装受影响的依赖项
  • 试过&sudo npm探索npm -g --npm install node-gyp @ latest'修复
  • 尝试在package.json中弄乱受影响的依赖版本号,更改'〜'到'> ='一个la russfrisch解决方案:https://github.com/node-inspector/v8-debug/issues/7

我做完了:(需要帮助!

0 个答案:

没有答案