安装NVM
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
无法访问时可以先下载再上传至服务器运行
更改NVM镜像
sudo vi ~/.bashrc
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node/
export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs