安装gulp的时候报错,ERR! stack Error: `gyp` failed with exit code: 1,解决办法如下
//删除 .node-gyp/
rm -rf .node-gyp/
//执行
npm i -g node-gyp
//删除 项目名称/node_modules
rm -rf proName/node-modules
执行npm i -d
//最后重新install
npm install
本文指导如何修复gulp安装过程中遇到的错误,步骤包括删除.npm-gyp文件、重新安装node-gyp、清理node_modules并重新安装。
安装gulp的时候报错,ERR! stack Error: `gyp` failed with exit code: 1,解决办法如下
//删除 .node-gyp/
rm -rf .node-gyp/
//执行
npm i -g node-gyp
//删除 项目名称/node_modules
rm -rf proName/node-modules
执行npm i -d
//最后重新install
npm install
4238
1797

被折叠的 条评论
为什么被折叠?