Usaid
Usaid

Reputation: 13

npm not working, shows Response timeout while trying to fetch https://registry.npmjs.org/

Every time I try to install a package I get the error message shown below.

I have tried everything, please help me.

npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/base-config-process (over 30000ms)

Upvotes: 1

Views: 495

Answers (1)

zergcore
zergcore

Reputation: 49

Try using timeout flag. I had the same error when I tried to install cordova because a bad internet connection. Then I did this:

npm i -g --timeout=120000 cordova

and it worked for me, so I hope it works for you as well

Upvotes: 1

Related Questions