sudo apt-get remove nodejs sudo apt-get remove npm. Then go to /etc/apt/sources.list.d and remove any node list if you have. Then do a ... <看更多>
Search
Search
sudo apt-get remove nodejs sudo apt-get remove npm. Then go to /etc/apt/sources.list.d and remove any node list if you have. Then do a ... <看更多>
For OS X, Xcode will work, for Debian/Ubuntu based GNU/Linux, the build-essential and libssl-dev packages work. Note: nvm also support Windows in some cases. It ... ... <看更多>
... <看更多>
Remove nvm sudo rm -rf ~/.nvm hash -r # Remove latest node ... latest nodejs version sudo apt-get purge -y nodejs npm # Remove nodejs-legacy ... ... <看更多>
However when I try to install npm , apt-get wants to remove libssl-dev : :~$ sudo apt-get install npm Reading package lists... Done Building dependency tree ... ... <看更多>