【发布时间】:2020-06-09 15:11:58
【问题描述】:
在运行 npx create-react-app app-name 时,进程会在运行 npm audit fix 时自动停止,并且不会显示任何错误
我也使用了不同的命令来解决这个问题
update npm globally
npm install -g create-react-app
create-react-app my-app
或
install yarn
yarn create react-app my-app
或
npm cache clean --force
npx create-react-app my-app
但对我没有任何作用,它总是在运行 npm 审计漏洞时停止
PS D:\mern> npx create-react-app client
Creating a new React app in D:\mern\client.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
> core-js@2.6.11 postinstall D:\mern\client\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js@3.6.5 postinstall D:\mern\client\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
> core-js-pure@3.6.5 postinstall D:\mern\client\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
+ cra-template@1.0.3
+ react-scripts@3.4.1
+ react@16.13.1
+ react-dom@16.13.1
added 1626 packages from 750 contributors and audited 1630 packages in 257.371s
59 packages are looking for funding
run `npm fund` for details
【问题讨论】:
标签: node.js reactjs react-native npm