Spinning cursor on command line while trying to install npm

After entering the command, the sudo npm install -g bower

terminal moves to the next line and displays a spinning backslash character inside the cursor. From this point on, he never progresses. Any ideas as to what I can do? This works in Crouton on Chromebooks, but I don't think this is a problem as I have installed other components using npm in the past.

enter image description here

+3


source to share


3 answers


If this happens with all packets, it is probably an HTTPS issue. Try to install node to use HTTP: npm config set registry http://registry.npmjs.org/



and then try installing again.

+5


source


I got a similar problem and installing

npm config set spin=false

      



solved the problem

found suggested solution here: https://github.com/npm/npm/issues/5340

+1


source


There might be a firewall issue if you normally use a proxy to connect to the internet. Try this first and make sure you are using the actual host and port.

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

      

Resource here

0


source







All Articles