My npm is getting stuck a lot, whether its npm install from package.json
or individual packages.
Right now, I'm not even able to sudo npm install node-inspector -g
I'm using node 6.2.1
, npm 3.9.5
on ubuntu 16.04
npm cache clear
didn't help. The installation takes hours or fails.
Check if there any issues with proxies if you using any. You can try also to set npm's endpoint manually:
npm config set registry="http://registry.npmjs.org"
try yarn installer instead of npm:
sudo npm install -g yarn yarn install
I found it much more resilient to such problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With