My npm is getting stuck a lot, whether its npm install from package.json or individual packages.
package.json
Right now, I\'m not even able to sudo npm install
sudo npm install
Having same problem. Fixed it by switching to correct version of node required by the project.
My project needed node >=v4.3 and <=v5.
>=v4.3 and <=v5.
1) Check node version being used by nvm ls
nvm ls
2) Use nvm use [version] or else install the specific version. if you don't have.
nvm use [version]