首页 > 学院 > 开发设计 > 正文

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

2019-11-08 03:01:53
字体:
来源:转载
供稿:网友

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

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

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

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

方法是:

npm install -g grunt-node-inspector还有一个,也是最多人认同的:

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,把>=改成~


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表