中止安装create-react-app 使用create-react-app创建项目时,出现以下错误
C:\Users\Usuario\Desktop\calculadoras>npx create-react-app my-app
npx: installed 99 in 65.944s
Creating a new React app in C:\Users\Usuario\Desktop\calculadoras\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/js-ya
ml (over 30000ms)
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Usuario\AppData\Roaming\npm-cache\_logs\2020-03-24T02_25_3
1_879Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts
cra-template has failed.
Deleting generated file... package.json
Deleting my-app/ from C:\Users\Usuario\Desktop\calculadoras
Done.
我的系统是Windows 7
C:\Users\Usuario\Desktop\calculadoras>node -v
v12.16.1
C:\Users\Usuario\Desktop\calculadoras>npm -v
6.14.3
C:\Users\Usuario\Desktop\calculadoras>