node.js错误 --> node-pre-gyp install --fallback-to-build

错误:node-pre-gyp install --fallback-to-build

问题描述:在安装ghost博客的时候需要使用node.js,但是在执行sudo npm install --production的时候报了这个错误

接着百度,看到https://github.com/node-inspector/v8-debug/issues/7github有同样问题了

我就选了一种试试,结果成功了

 

方法是:

node.js错误 --> node-pre-gyp install --fallback-to-build_第1张图片

 

npm install -g grunt-node-inspector


还有一个,也是最多人认同的:

 

node.js错误 --> node-pre-gyp install --fallback-to-build_第2张图片

I was experiencing this same issue. Changing in the version for grunt-node-inspector to prepend a ">=" instead of a "~" got this to work for me.

这个在你报错的目录下应该有个package.json,把~改成>=

你可能感兴趣的:(web)