由于最近换新电脑了,所以需要重新拉项目,安装依赖后有几个报错。
npm install # 安装项目依赖包
11 packages are looking for funding
run `npm fund` for details
found 1 high severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
npm官网提供了命令说明
npm audit fix //检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,无需自己跟踪和修复。
npm audit //允许开发者分析复杂的代码,并查看漏洞和缺陷。
所以只需要按照提示 npm audit fix
15 vulnerabilities (7 moderate, 8 high)
To address all issues, run:
npm audit fix
vue使用时提示有漏洞,那么就是直接按照后面提示的命令npm audit fix 就可以解决,