Home > Back-end >  I am trying to create-react app but I get this output:-
I am trying to create-react app but I get this output:-

Time:11-14

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

npm ERR! code EHOSTUNREACH
npm ERR! syscall connect
npm ERR! errno EHOSTUNREACH
npm ERR! request to http://registry.npmjs.org/cra-template failed, reason: connect EHOSTUNREACH 10.240.72.35:8080

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/natanan/.npm/_logs/2021-11-13T06_25_16_865Z-debug.log

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

CodePudding user response:

Check if you have a stable network connection, then run the create-react-app again or try using yarn instead of npm

CodePudding user response:

may you need to try it :

npx create-react-app my-app

  • Related