錯誤: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,把>=改成~
新聞熱點
疑難解答