解决npm错误:found XXX vulnerabilities
解决npm报错信息:
found XXX vulnerabilities (XXX high, XXX low, XXX moderate)
runnpm audit fix
to fix them, ornpm audit
for details本文环境:
- Node.js 16.14.2
尝试执行npm audit fix
进行修复,
没用的话就全清了重新装吧,
- 清除缓存
npm cache clean --force
- 删掉文件夹
node_modules
- 如果没有
package.json
文件就执行npm init -y
然后重新安装,npm install
,
解决npm错误:found XXX vulnerabilities
https://sayurinana.github.io/2024-02-29-解决npm错误:found-XXX-vulnerabilities.html