I hung up too. I installed node via nvm and could not start npm or node. I had to run nvm use 0.10.10
then which node and which npm worked again.
if you installed npm via nvm , you can add nvm use <version> to your .bashrc so that you always have access to npm on any open shell. You just need to remember that you need to update it every time you upgrade npm or use stable .
Jimtek
source share