0

Is there any difference between the way npm communicates for npm install on linux and windows?

I'm facing problem on a specific network, but only on linux systems. Windows works fine. I switched to windows and tried on same network, it worked fine.

Linux npm install works fine on other network.

I need to find something before i tell the network guy where exactly the problem is.

A 5 min npm install keeps going on for the whole day, and still doesnt complete!

So far I've tried with archlinux, ubuntu 14, 16

Dushyant Bangal
  • 6,048
  • 8
  • 48
  • 80
  • 1
    try installing as npm install --verbose and see if logs returns something useful – Ritesh Kumar Gupta Jul 01 '16 at 07:56
  • Already tried, nothing. It just keeps waiting on `fetchMetadata` for most of the packages. Some get installed, for some it takes time... a LOT of time. – Dushyant Bangal Jul 01 '16 at 08:00
  • Try few things: `npm config set registry http://registry.npmjs.org/` , or `npm cache clean` or, update nodejs and npm itself to latest stable verison.. Since log didn't provide any useful info, so i think trying one of the above combination won't be a bad idea. – Ritesh Kumar Gupta Jul 01 '16 at 08:16
  • naah, had tried that too http://stackoverflow.com/questions/37860219/npm-gets-stuck-on-fetchmetadata-network – Dushyant Bangal Jul 01 '16 at 08:25
  • happens me once.. The problem I face that time was low memory issue. After adding enough amount of swap space I was able to complete – Noel Carcases Jul 01 '16 at 09:46
  • well i have 4 gigs free and all 8 gigs of swap space free. also facing the issue on other linux machines. And the main point is, It works fine on other network – Dushyant Bangal Jul 01 '16 at 11:00
  • can always give a shot to `npm install` with `--no-optional` – Tomer Ben David Dec 18 '16 at 10:48

0 Answers0