执行node-gyp configure报错解决方案

(1)首先删除 $HOME/.node-gyp rm -rf ~/.node-gyp

(2)然后重新安装最新的 node-gyp 包 npm i node-gyp -g

(3)然后移除直接安装但build失败的 nodemodules rm -rf ./project/node_modules

(4)最后重新 npm i -d 就行

重新安装node,网址:https://nodejs.org/zh-cn/download/

猜你喜欢

转载自www.cnblogs.com/blackhumour2018/p/9761211.html