我运行了以下命令来安装NVM:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
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
它运行正常,我可以运行nvm,但是关闭并重新打开终端后,它会提示以下错误:
-bash:nvm:找不到命令
怎么了?
MAC版本:10.14.5
我已经安装了节点v11.13.0。