关于node-gyp rebuild报错

解决方案

重新安装最新版node-gyp

npm install --global node-gyp@latest
for /f "delims=" %P in ('npm prefix -g') do npm config set node_gyp "%P\node_modules\node-gyp\bin\node-gyp.js"
# 或 npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}

删除node-gyp

npm uninstall --global node-gyp
npm config delete node_gyp

评论

暂无

添加新评论