npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm install hangs on my network, but works on others

I’m having this issue with npm where I cannot install the packages in my package.json on my home network. I tried countless “fixes” (including modifying the registry to http instead of https, modifying the proxy and https-proxy, using unsafe-perm, installing the packages individually, etc.) but none of them seem to work. I decided to try installing them while connected to my phone’s LTE hotspot and miraculously it worked normally. Now my next issue is, what could be causing this?

When I install on my network, it starts to slow down and then completely stops and hangs (on a random package). After a few tries, I was able to install yarn, and could install my dependencies with it.

Extra info:


I don’t have any specific advice, but in case you had not seen it there is a troubleshooting guide: Common proxy and networking problems


Thanks, I checked the points but I can connect to https://registry.npmjs.org/ and I’m able to manually download the packages normally. The other points don’t seem to be related to my case.