nvm提示nvm: command not found

解决方法:

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

将以上代码加入到~/.bash_profile 文件中去,并且重启终端

你可能感兴趣的:(nvm提示nvm: command not found)