[英]i was trying to install some packages to my react project i got this “ found 1 low severity vulnerability” ,
and here is my terminal which describes my error clearly这是我的终端,它清楚地描述了我的错误
i was trying to install some packages to my react project, and I got this " found 1 low severity vulnerability", so I did run
npm audit
and I found the problem in react-scripts dependencies, so I ran npm install react-scripts --save, but that didn't solve the problem and still have the same error " found 1 low severity vulnerability"我试图在我的 react 项目中安装一些软件包,我得到了这个“发现 1 个低严重性漏洞”,所以我确实运行npm audit
,我在 react-scripts 依赖项中发现了问题,所以我运行了 npm install react-scripts - -save,但这并没有解决问题,仍然有同样的错误“发现 1 个低严重性漏洞”
Try npm audit fix
, that should fix the issue.尝试npm audit fix
,应该可以解决问题。 If that doesn't work, delete your yarn.lock
or package-lock.json
file then try again.如果这不起作用,请删除您的yarn.lock
或package-lock.json
文件,然后重试。
You could also try npm update
.您也可以尝试npm update
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.