I have a Linux server that runs some virtual Machines using KVM. Host machine is a Debian derivate with kernel 2.6.32-32(-pve).
In roughly 75% of the times I run npm install
, it hangs while installing modules. I ran it in silly debug level and it always hangs at the line
npm info postinstall [module name]
(older npm versions)
or
npm verb unlock done using [...]
(newer npm versions)
forever.
It happens in every project on the host machine and on the virtualized systems for every node and every npm version I have tested (a lot, including the newest ones (2.7.x atm)).
It also is not deterministic. Sometimes it works, sometimes not and most of the times it hangs on a different module.
On my dev machine (which is in the same network, running OS X 10.10) it works fine.
I am not behind any kind of proxy.
What could possibly be wrong here?
EDIT: For the time being I solved this problem by checking in all my dependencies as gzipped files using https://github.com/JamieMason/shrinkpack
npm cache clean
to remove the lock files before running npm install? – Grindernpm cache clean
. I'm going to check the ~/.npmrc output. – Eludenpm install
is stable and does not get stuck, i tried with multiple versions ofnpm
nothing helped only making my internet/intranet connection more stable (best wired). – Coca