OSX上的MeanJS安装期间,"node-pre-gyp install --fallback-to-build"失败 [英] `node-pre-gyp install --fallback-to-build` failed during MeanJS installation on OSX
本文介绍了OSX上的MeanJS安装期间,"node-pre-gyp install --fallback-to-build"失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
长时间使用Windows后,我刚刚为自己买了一台Mac图书.
I just bought myself a mac book after using Windows for a long time.
我正在尝试从事我一直在从事的MeanJS项目.
在项目上执行npm install
会引发错误
I was trying to work on a MeanJS project that I had been working on.
Doing npm install
on the project throws error
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/Aayush/Work/lishn/repo/lishn-alpha/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64/debug.node --module_name=debug --module_path=/Users/Aayush/Work/lishn/repo/lishn-alpha/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64' (1)
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE
>
> npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the v8-debug 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-debug
npm ERR! There is likely additional logging output above.
我尝试清除缓存.
我尝试使用sudo
和--unsafe-perm
我还尝试重新安装MEAN项目,但出现相同的错误.
I also tried to fresh install a MEAN project, with the same error.
我似乎找不到这里的问题.
I can't seem to find what the problem is here.
Node Version - 5.0.0
NPM Version - 3.3.10
推荐答案
我已经尝试升级node-gyp:
i have tried upgrading node-gyp:
sudo npm install -g node-gyp
对我有用.
我在此处找到了解决方案,希望对您有所帮助.
I find the solution here, I hope it can help.
这篇关于OSX上的MeanJS安装期间,"node-pre-gyp install --fallback-to-build"失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文