skip to Main Content

I’m trying to create a react app through npx but facing an error mentioned below. I am using the following command:

npx create-react-app my-app

Below is the error message

npm ERR! code ENOTFOUND <br>
npm ERR! syscall getaddrinfo<br>
npm ERR! errno ENOTFOUND<br>
npm ERR! network request to http://registry.npmjs.org/create-react-app failed, reason: getaddrinfo ENOTFOUND yourproxy<br>
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the<br>
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'       

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

enter image description here

2

Answers


  1. Run npm uninstall -g create-react-app

    After that run again npx create-react-app my-app

    Login or Signup to reply.
  2. Check you internet connection and if you setup proxy in your system fix it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search