好的,我把头发拉了出来,连续两天都被卡住了。
几个月后我再次开始研究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.
我认真尝试了我能想到的一切:
我做完了:(需要帮助!