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:
- 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
- Then i tried set registry as well using:
npm config set registry https://registry.npmjs.org/
-
Then i even tried to set the timeout to 60000
-
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
Running the command with verbose output might provide additional information about the issue. Try using the –verbose flag when creating the React app
did you try
again , after clean force command ?
also Follow These Steps might be help :
you can also switch to, yarn create react-app app_name