安装nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
//或
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
重启终端
前往https://nodejs.org/
查看lts
如最新版为v6.11.0
则使用:
nvm install v6.11.0