Node.js Mint 17.2上安装npm时出现节点gyp和节点前gyp错误

Node.js Mint 17.2上安装npm时出现节点gyp和节点前gyp错误,node.js,ubuntu,npm,node-gyp,Node.js,Ubuntu,Npm,Node Gyp,好吧,我要把我的头发拔出来了,已经连续两天被困在这上面了 几个月后,我又开始做一个普通的项目,并且在npm安装中遇到了大量的节点gyp错误 如果有帮助,我可以附加整个输出,但以下是有问题的模块: > kerberos@0.0.11 install /home/me/node/abc/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos > (node-gyp rebuild 2> builde

好吧,我要把我的头发拔出来了,已经连续两天被困在这上面了

几个月后,我又开始做一个普通的项目,并且在npm安装中遇到了大量的节点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,并将npm配置设置为指向Python 2、2.7和3
  • 已尝试全局安装受影响的依赖项
  • 尝试了“sudo npm explore npm-g--npm安装节点”-gyp@latest“修理
  • 尝试在package.json中弄乱受影响的依赖项版本号,在此处将“~”更改为“>=”la russfrisch解决方案:

我完成了:(需要帮助!

您是否尝试过使用-g选项全局安装node gyp?是否安装了make和适当的C/C++编译器?如本文所述,正确的python版本是2.7(不支持3.x)您可以安装编译器并使用:APT get安装安装EsStudialEes,已经尝试过所有这些,并尝试安装重新安装G++编译器、制作、构建基本ETC以及添加2×x的Pythin版本,包括2.7个。谢谢。另外一个我注意到的是,为了获得它,需要安装VisualStudioC++编译器。工作正常。请尝试。您是否尝试过使用-g选项全局安装node gyp?是否安装了make和正确的C/C++编译器?如本文所述,正确的python版本为2.7(不支持3.x)您可以安装编译器并使用:APT get安装安装EsStudialEes,已经尝试过所有这些,并尝试安装重新安装G++编译器、制作、构建基本ETC以及添加2×x的Pythin版本,包括2.7个。谢谢。另外一个我注意到的是,为了获得它,需要安装VisualStudioC++编译器。工作正常,试试看。