首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用npx创建REACT应用程序时出错

用npx创建REACT应用程序时出错
EN

Stack Overflow用户
提问于 2022-02-08 02:02:12
回答 1查看 193关注 0票数 0

它不会让我安装react,因为这个错误出现了,我正在尝试安装react,但是我得到了这个错误消息

代码语言:javascript
复制
npm ERR! code ERR_SOCKET_TIMEOUT

npm ERR! errno ERR_SOCKET_TIMEOUT

npm ERR! network Invalid response body while trying to fetch https://registry.npmjs.org/html-webpack-plugin: Socket timeout

npm ERR! network This is a problem related to network connectivity.

npm ERR! network In most cases you are behind a proxy or have bad network settings.

npm ERR! network

npm ERR! network If you are behind a proxy, please make sure that the

npm ERR! network 'proxy' config is set properly.  See: 'npm help config'


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\Hector\AppData\Local\npm-cache\_logs\2022-02-08T01_35_21_593Z-debug-0.log


Aborting installation.
  npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

我已经试过清理缓存了

EN

回答 1

Stack Overflow用户

发布于 2022-02-08 02:15:21

试试npx create-react-app client。客户端一词可以替换为您想要成为文件夹名称的任何单词。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71027755

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档