npm install报错具体信息如下:

npm install报错 npm ERR! Error while executin npm ERR! undefined npm ERR! No git binary found in $PATH

网上搜索问题是因为Node环境从8到10后才出现这种情况,解决办法是执行

npm rebuild node-sass

如果这样报错失败的话,再执行:

npm uninstall -s node-sass
npm install -s node-sass

就是直接删除node-sass包后再重新install

对于一些老项目的话可能有些包的依赖版本发生变化,可以执行下面代码修复一下。

`npm audit fix

参考https://www.cnblogs.com/jehorn/p/10402420.html

相关文章:

  • 2021-04-11
  • 2022-12-23
  • 2021-08-18
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案