简体   繁体   English

create-react-app 安装有报告的 NPM 漏洞,我应该做些什么吗?

[英]create-react-app installs with reported NPM vulnerabilities, should I do something?

I am new to ReactJs and started setting up a new project with我是 ReactJs 的新手并开始建立一个新项目

$ npx create-react-app <app-name>

It completed but reported some vulnerabilities like following, could anyone help me with what would be the best practice to handle this or we could ignore these vulnerabilities?它完成了但报告了一些漏洞,如下所示,谁能帮助我处理这个问题的最佳实践,或者我们可以忽略这些漏洞?

What would be the best practices for setting up a ReactJS project?设置 ReactJS 项目的最佳实践是什么?

found 81 vulnerabilities (21 low, 35 moderate, 24 high, 1 critical)发现 81 个漏洞(21 个低、35 个中等、24 个高、1 个严重)

Try recommended command尝试推荐的命令
the vulnerabilities may reduce.漏洞可能会减少。

npm audit fix

Since you don't use it in prod, in most situation it can be ignored.由于您不在生产中使用它,因此在大多数情况下可以忽略它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM