Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms) #1185

Closed
HolySpirit777 opened this issue Apr 21, 2020 · 27 comments
Labels
Release 6.x work is associated with a specific npm 6 release

Comments

@HolySpirit777
Copy link

HolySpirit777 commented Apr 21, 2020

I want to install the angular cli using npm install @angular/cli but a got an error saying that it could not fetch the data.

I have tried using both node js version 12 and 13 and also differents npm versions

  • I dont use a proxy server.

  • I dont use a vpn.

  • My internet connection does not have any problem.

  • I tried to uninstall node js, also erased the npm directory from Appdata and any other related directory to Node js

this is the log file:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@angular/cli'
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.16.2
4 verbose npm-session b1b30f92d1295fda
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for @angular/cli@latest Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms)
8 timing stage:rollbackFailedOptional Completed in 1ms
9 timing stage:runTopLevelLifecycles Completed in 30453ms
10 verbose type body-timeout
11 verbose stack FetchError: Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms)
11 verbose stack at Timeout._onTimeout (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\body.js:189:16)
11 verbose stack at listOnTimeout (internal/timers.js:549:17)
11 verbose stack at processTimers (internal/timers.js:492:7)
12 verbose cwd C:\repositorio
13 verbose Windows_NT 10.0.17763
14 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "@angular/cli"
15 verbose node v12.16.2
16 verbose npm v6.14.4
17 error Response timeout while trying to fetch http://registry.npmjs.org/@angular%2fcli (over 30000ms)
18 verbose exit [ 1, true ]

@RiZKiT
Copy link

RiZKiT commented Apr 22, 2020

Related to #1151, seems to be an issue with npm 6.14.*.

@HolySpirit777
Copy link
Author

@RiZKiT Thanks for the answer

@RiZKiT
Copy link

RiZKiT commented Apr 22, 2020

Downgrading to 6.13.7 solved it for us.

@HolySpirit777
Copy link
Author

Downgrading to 6.13.7 also solved it for me.

@KhaledSamir
Copy link

Same issue but this /npm/registry/typescript and downgrading to 6.13.7 solved the problem!

No need to increase the timeout in .npmrc or anything like that.

@AbuAbeer
Copy link

same problem here

@AbuAbeer
Copy link

how can i downgrade this?

@KhaledSamir
Copy link

KhaledSamir commented May 11, 2020

@AbuAbeer You just need to run " npm i npm@6.13.7 " or " npm I -g npm@6.13.7 " if you wanna this to be global version.

After that, just to make sure, run " npm -version " to see what version you are using.

Hope this helps!

@AbuAbeer
Copy link

AbuAbeer commented May 12, 2020

@KhaledSamir i tried this but getting same error.. Every time there is a new error whenever i try to install expo-cli...
Untitled-1 copy

@KhaledSamir
Copy link

@AbuAbeer This error you're showing is different than what this thread is talking about. I would say check this issue: expo/expo#1992 and see if it fixes that error.

@drwatsno
Copy link

Faced the same issue while installing dependencies from a private registry.

npm ERR! Response timeout while trying to fetch https://nexus-new.tcsbank.ru/repository/npm-all/@typescript-eslint%2fparser (over 30000ms)

Endpoint is accessible. npm version is 6.14.4

@KhaledSamir
Copy link

@drwatsno Please read the entire thread and suggestions before you report an issue. The solution is within the replies above.

@drwatsno
Copy link

@drwatsno Please read the entire thread and suggestions before you report an issue. The solution is within the replies above.

Solved it by downgrading npm to 6.13.4.

@AbuAbeer
Copy link

@AbuAbeer You just need to run " npm i npm@6.13.7 " or " npm I -g npm@6.13.7 " if you wanna this to be global version.

After that, just to make sure, run " npm -version " to see what version you are using.

Hope this helps!

Solved this by downgrading. Thanks a lot ..

@KhaledSamir
Copy link

@drwatsno @AbuAbeer Glad to hear the problem is resolved! ;)

@WalterGaldamezWeb
Copy link

Ese mismo problema tenia en la version 6.14.4 actualice a 6.14.5 y el problema se soluciono
npm install npm@latest -g

I had the same problem in version 6.14.4 updated to 6.14.5 and the problem was solved
npm install npm @ latest -g

@theodor85
Copy link

Same problem while installing @vue/cli in docker node:12.16.3. The problem was solved by using node:14.3.0 container.

@brunopardim
Copy link

Hello !
I have same problem, I don´t use proxy ou vpn and my connection is good. I trying the solutions on comments but doesn´t work.

node -v v12.17.0
npm -v 6.14.5

My angular instalation freezes on:

C:\Users\bruno>npm install -g @angular/cli
[ .................] / fetchMetadata: sill resolveWithNewModule which@1.3.1 checking installable status

@brunopardim
Copy link

Tks team, I did install the angular an create a project, everything looks good !

@serkon
Copy link

serkon commented Jun 10, 2020

I have the same problem, but just getting this error at 2.5mb @logo-software/theme file sized package. Others (less sized packages) published without problem ...

npm -v
6.14.2

NOTE:
When updated to npm install -g npm@latest version then published successfully

npm -v
6.14.5

node -v
v13.11.0

@CollapsedMetal
Copy link

Same here... Upgraded npm to v6.14.5. Problem fixed

@ayush0x00
Copy link

You may need to check whether npm is up or not. Sometimes, npm is down and hence will result in ERROR 404. You can check the status of npm here.

@Dinesh9418
Copy link

i have a problem
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/typescript (over 30000ms)

@nirajkheria
Copy link

I had the same error for npm version 6.14.4 and updating it to the latest version fixed the issue

@darcyclarke darcyclarke added the Release 6.x work is associated with a specific npm 6 release label Oct 30, 2020
@OskarUno
Copy link

Hola, a mi pe paso um problema similar al instalar firebase y se soluciono con:

npm install -g npm@latest

Graciassss

@darcyclarke
Copy link
Contributor

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is preproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.

@arhamabeer
Copy link

Downgrading to npm version 6.13.7 worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release 6.x work is associated with a specific npm 6 release
Projects
None yet
Development

No branches or pull requests