npm install 错误 gyp ERR! configure error

问题:合并代码后一直无法npm i
npm install 错误 gyp ERR! configure error
文章图片

解决方法:
尝试运行下面命令:

sudo npm i --unsafe-perm

如果无法解决,依次执行以下命令:
sudo rm -rf ~/.node-gyp sudo npm cache clean -f sudo npm install -g n sudo n stable sudo npm i --unsafe-perm

成功解决问题:
【npm install 错误 gyp ERR! configure error】npm install 错误 gyp ERR! configure error
文章图片

    推荐阅读