通过nvm安装下载nvm,执行wget-qO-https://raw.github.com/creationix/nvm/v0.33.11/install.sh|sh将命令输出到终端command~/.bashrcexportNVM_DIR="$HOME/.nvm"updatefilesource.bashrc通过nvm安装node.jsnvminstall10.13安装的版本是10.13通过命令node查看node.js版本-v

通过nvm安装下载nvm,执行wget-qO-https://raw.github.com/creationix/nvm/v0.33.11/install.sh|sh将命令输出到终端command~/.bashrcexportNVM_DIR="$HOME/.nvm"updatefilesource.bashrc通过nvm安装node.jsnvminstall10.13安装的版本是10.13通过命令node查看node.js版本-v