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

发布时间 2023-08-03 19:31:27作者: haonanElva

完整报错

我正准备 npm 装包,结果失败了,并提示如下报错信息:

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

解决

直接按照后面提示的命令执行:

npm audit fix

解决xxx packages are looking for funding

npm经常遇到以下错误,记录一下处理方法:
xxx packages are looking for funding
  run `npm fund` for details
1. 如果不打赏,直接用
npm install --no-fund