curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
或者
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash
之后
source ~/.bashrc
ok。