ubuntu16.04 install node.js, npm
sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm --version
nvm install 8.11.2
nvm use 8.11.2
nvm alias default8.11.2
node -v
npm config set registry=https://registry.npm.taobao.org
npm install -g npm
npm -v
Author: Time Rose
Source: CSDN
Original: https://blog.csdn.net/qq_28263253/article/details/81809067
Copyright statement: This article is the original article of the blogger, please attach the link to the blog post if you reprint it!
Recommended Posts