npm安装 (high severity)高危漏洞提醒

安装 axios 使用命令:

npm i axios -S

npm install axios

问题

npm在安装axios时候会出现一个1 high severity vulnerability提醒

 

解决:

npm audit fix

// 检测项目依赖中的漏洞并自动安装需要更新的有漏洞的依赖,无需自己跟踪和修复。
npm audit   

// 允许开发者分析复杂的代码,并查看漏洞和缺陷。
所以我只需要按照提示 npm audit fix 

此时重新下载,发现如下:

猜你喜欢

转载自blog.csdn.net/weixin_46474921/article/details/129728223