PS F:\reactproject> npx create-react-app my-app
Creating a new React app in F:\reactproject\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm error code ECONNRESET
npm error syscall read
npm error errno ECONNRESET
npm error network Invalid response body while trying to fetch https://registry.npmjs.org/electron-to-chromium: read ECONNRESET
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\NASEER PC\AppData\Local\npm-cache\_logs\2024-08-06T06_52_01_032Z-debug-0.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 my-app/ from F:\reactproject
Done.
我只是想学习react.js,我刚刚开始练习,但是这个错误第一次出现在路线图中,我陷入了这个错误并且无法解决它
ECONNRESET错误会导致服务器端连接终止,网络不稳定你就别不好意思了。
检查您的网络是否不稳定。
尝试重新启动计算机并重试