在终端执行一下两步(亲测,可行无误)
第1步
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
第2步
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
网友评论