Ubuntu 下安装 apt-get install npm 失败的解决方案:
sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs
from :http://askubuntu.com/questions/626383/node-package-manager-got-corrupted-in-some-way-now-it-cannot-be-installed
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/p/4988610.html,如需转载请自行联系原作者