小编dev*_*ack的帖子

npm 错误!尝试获取 https://registry.npmjs.org/react-is 时响应超时(超过 30000 毫秒)

当我想创建一个 React 应用程序时,我遇到了以下错误:

npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/react-is (over 30000ms)

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\info\AppData\Roaming\npm-cache\_logs\2020-04-23T02_54_45_865Z-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 app2/ from C:\Users\info
Done.
Run Code Online (Sandbox Code Playgroud)

npm reactjs npm-install create-react-app npm-scripts

26
推荐指数
4
解决办法
5万
查看次数