0
点赞
收藏
分享

微信扫一扫

npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `


文章目录

  • ​​npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run `npm audit fix` to fix them, or `npm audit` for details​​
  • ​​`Process` 产生场景​​
  • ​​`Process` 解决​​

npm install 报错:found XXX vulnerabilities (XXX low, X moderate),run ​​npm audit fix​​ to fix them, or ​​npm audit​​ for details

​如果觉得本文对你有帮助,可以一键三连支持,谢谢​

​Process​​ 产生场景

Git 拉取项目,然后 npm i 装包,然后报错

found 5546 vulnerabilities (5546 low, 4 moderate)
run `npm audit fix` to fix them, or `npm audit` for details

​Process​​ 解决

执行 ​​npm audit fix​

没用,然后执行 ​​npm cache clean --force​​​ 清除缓存,并删掉 ​​node_modules​​​ 检查 ​​package.json​​ 文件,如果缺少 ,则执行 ​​npm init -y​

然后把包装回来 ​​npm i​​​,然后 ​​npm run build​​,项目成功运行


举报

相关推荐

0 条评论