1.?安裝nvm
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
2.?安裝node
列出所有版本
nvm ls-remote
安裝版本
nvm install 0.12.7
用國內源安裝
NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/dist nvm install 0.12.7
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash
列出所有版本
nvm ls-remote
安裝版本
nvm install 0.12.7
用國內源安裝
NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/dist nvm install 0.12.7