Ubuntu 下安装 apt-get install npm 失败的解决方案

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 

原文地址:https://www.cnblogs.com/94cool/p/4988610.html