3

NPM version (npm -v) is 6.14.4

I want to create react application using 'npx create-react-app helloapp',but I got an error saying that it could not fetch the data.

Error is - npm ERR! Response timeout while trying to fetch http://registry.npmjs.org/@typescript-eslint%2feslint-plugin (over 30000ms).

2
  • npm version issue. Commented Sep 16, 2020 at 3:31
  • 2
    To fix this issue, we can update npm version using below npm command. npm install -g npm@latest. Check your npm version, if your npm version is - 6.14.4 then update your npm version. npm i -g [email protected] It is working for me. Commented Sep 16, 2020 at 3:35

2 Answers 2

1

Clean npm cache:

npm cache clean --force

then

npm install -g create-react-app    
npx create-react-app my-app     
cd my-app      
npm start
Sign up to request clarification or add additional context in comments.

1 Comment

Issue is related to npm version. I update my npm version and it worked for me. npm i -g npm@latest
0
  1. Go to C:\Program Files\nodejs\node_modules\npm\npmrc

  2. Edit the npmrc file and set:

     timeout:600000
    
     prefer-offline=true.
    
  3. Try again. It will work.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.