[在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.json
和package-lock.json
,并且不创建app.js
,public
,src
目录和文件。
所以请帮助我创建一个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
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){}”
npm fund
以获取详细信息发现1个低严重性漏洞 运行npm audit fix
修复它们,或运行npm audit
以获得详细信息