skip to Main Content

Basically when i’m trying to create a react app using

npx create-react-app chat-app

I’m getting this error:
Error

I tried following things to remove error:

  1. First to check weather i’m running behind the proxy or not i executed this command:

npm config get proxy

So i got "null" as output

  1. Then i tried set registry as well using:

npm config set registry https://registry.npmjs.org/

  1. Then i even tried to set the timeout to 60000

  2. I also tried to exeute:

npm cache clean --force

Other than this my network connectivity is also good and i tried switching it as well. My node version is also the latest one.

After trying all these also i’m getting the same error

Please help me find the solution for this error

2

Answers


  1. Running the command with verbose output might provide additional information about the issue. Try using the –verbose flag when creating the React app

    npx --verbose create-react-app chat-app

    Login or Signup to reply.
  2. did you try

    npm install create-react-app

    again , after clean force command ?

    also Follow These Steps might be help :

    npm cache clean –force

    npm uninstall -g create-react-app

    npm uninstall create-react-app

    npm install create-react-app

    npx create-react-app app_name

    you can also switch to, yarn create react-app app_name

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