我刚刚在长时间使用Windows后给自己买了一本mac书。在OSX上安装MeanJS时,node-pre-gyp install --fallback-to-build`失败
我正在努力研究我一直在研究的MeanJS项目。 对项目做npm install
抛出错误
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! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.
我试过清除缓存。
我尝试安装节点预GYP与sudo
和--unsafe-perm
我也试着重新安装,平均项目,同样的错误。
我似乎无法找到问题在这里。
Node Version - 5.0.0
NPM Version - 3.3.10
我已经发现了一些线程表明降级节点和故宫。我还没有证实,如果这工作尚未。我想解决这个问题,而不必降级。 –
我会建议至少降级到'4.2.x',因为它是几周前才发布的最新的长期版本。如果它在那里工作,然后尝试使用5.x来查看什么是中断,那么npm模块有可能还没有被更新来处理'5.x',因为它只有几天?或者至少不要通过npm或node使用sudo来节省一些麻烦,并考虑使用'nvm'。 – jmunsch
当node-pre-gyp尝试构建时会发生什么? (它是npm错误之上的文本)。此外,您正在使用的节点版本是4.1.1'npm ERR! node v4.1.1' – jmunsch