- 正常通过以下安装命令:
curl -o-https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh| bash
or Wget:
wget -qO-https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh|bash
- 失败的话可以尝试如下:
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout git describe --abbrev=0 --tags
然后在~.base_profile 中增加:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
最后记得命令:
source .base_profile
网友评论