提问者:小点点

即使在清除严重性漏洞后,也无法创建react应用程序


我试图创建一个网页使用Reactjs(学习反应js)。

在运行命令npx create react app cars后,我得到如下错误:

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
added 64 packages, and audited 107 packages in 15s
3 high severity vulnerabilities
To address all issues, run:
npm audit fix
Run "npm audit" for details.

运行npm审核后,它说:

To address all issues (including breaking changes), run: npm audit fix --force

其结果如下:

found 0 vulnerabilities

在完成所有这些步骤后,当我尝试从create react app开始创建项目时,我会遇到相同的错误,如:

x high severity vulnerabilities to address all issues, run: npm audit

我不明白我错过了什么。通过所有这些,我最终创建了4个文件夹,其中包含一个子文件夹节点模块和两个名为包锁JSON文件

有人能告诉我如何处理这些吗?

  • npm版本:7.21。0
  • 节点版本:v16。7.0
  • 窗口:10

共1个答案

匿名用户

以下是我创建react环境并了解这些警告/错误的步骤:

  1. 根据这个答案,我已经卸载了ByteFence,因为我在这里的评论中提到有威胁检测

除了这些步骤之外,我还确保安装了Node和npm的最新版本