-3

While attempting to install create-react-app I'm getting the below ERR_SOCKET_TIMEOUT error.

Creating a new React app in E:\New folder\my-app.

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/@webassemblyjs%2Fwasm-parser: 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\USER\AppData\Local\npm-cache\_logs\2022-05-06T03_59_33_425Z-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 E:\New folder
Done.

E:\New folder>

Any suggestions for how this can be resolved?

John Detlefs
  • 565
  • 4
  • 16
  • 4
    Check your internet connection. It is a `timeout` error it generally occurs when the network bandwidth is low. – Shubham Waje May 06 '22 at 04:42
  • This looks similar to: https://stackoverflow.com/questions/67657599/npm-err-code-err-socket-timeout-on-creating-new-project-using-ng-new-appname Have a look and see whether any of the solutions work for you? – John Detlefs May 06 '22 at 04:57
  • Check your proxy, internet settings, and firewall. Make sure that they are working correctly. If they are, check your network bandwidth. If it is low, then switch to a different network (or use a mobile hotspot temporarily). – Arnav Thorat May 06 '22 at 07:28

0 Answers0