显示“发现1个低严重性漏洞运行'npm audit fix'来解决问题,或'npm audit`了解详细信息”后,反应应用程序的创建将停止”

问题描述 投票:-1回答:1

[在Visual Studio Code中运行以下命令以创建React应用程序时:

create-react-app my-first-react-app

它停止进度并显示以下消息:

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

直到它仅创建节点模块package.jsonpackage-lock.json,并且不创建app.jspublicsrc目录和文件。

所以请帮助我创建一个React应用。

下面显示我创建反应应用程序所遵循的步骤和生成的日志:

PS D:\C_programs\NodeJsApp\my-first-react-app> npm install -g create-react-app     
C:\Users\Mahendra\AppData\Roaming\npm\create-react-app -> C:\Users\Mahendra\AppData\Roaming\npm\node_modules\create-react-app\index.js
+ [email protected]
updated 1 package in 60.481s
PS D:\C_programs\NodeJsApp\my-first-react-app> create-react-app my-first-react-app 

Creating a new React app in D:\C_programs\NodeJsApp\my-first-react-app\my-first-react-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...


> [email protected] postinstall D:\C_programs\NodeJsApp\my-first-react-app\my-first-react-app\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall D:\C_programs\NodeJsApp\my-first-react-app\my-first-react-app\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall D:\C_programs\NodeJsApp\my-first-react-app\my-first-react-app\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 1626 packages from 751 contributors and audited 1630 packages in 1114.609s

59 packages are looking for funding
  run `npm fund` for details

found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Sreenshot showing the same error log

javascript node.js reactjs npm
1个回答
0
投票
我也有同样的问题。您对此问题有解决方案吗?

PS D:\mern> npx create-react-app client

在D:\ mern \ client中创建一个新的React应用。

安装软件包。这可能需要几分钟。使用cra-template安装react,react-dom和react-scripts ...

[email protected]安装后D:\ mern \ client \ node_modules \ babel-runtime \ node_modules \ core-js node -e“ try {require('./ postinstall')} catch(e){}”

[email protected]安装后D:\ mern \ client \ node_modules \ core-js node -e“ try {require('./ postinstall')} catch(e){}”

[email protected]安装后D:\ mern \ client \ node_modules \ core-js-pure node -e“ try {require('./ postinstall')} catch(e){}”

  • 59个方案正在寻找资金 运行npm fund以获取详细信息

    发现1个低严重性漏洞 运行npm audit fix修复它们,或运行npm audit以获得详细信息

  • © www.soinside.com 2019 - 2024. All rights reserved.