首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场

npx创建
EN

Stack Overflow用户
提问于 2022-03-02 11:23:02
回答 1查看 118关注 0票数 0

npm config clear cache --force没有解决问题,其他反应项目无法启动服务器。

代码语言:javascript
运行
复制
C:\Users\Bismark\Documents\codes>npx create-react-app juxdrive

Creating a new React app in C:\Users\Bismark\Documents\codes\juxdrive.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

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/mini-css-extract-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\Bismark\AppData\Local\npm-cache\_logs\2022-03-01T16_04_39_178Z-debug.log

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

Deleting generated file... package.json
Deleting juxdrive/ from C:\Users\Bismark\Documents\codes
Done.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-03 02:19:05

几个你可以尝试的解决方案

如果您的节点项目中有Packy-lock.json包,如果您使用的是Docker映像而不是14,请将其删除为

  1. ,尝试降级到14
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71321834

复制
相关文章

相似问题

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