[英]nvm not found if I reopen the terminal on MacBook Pro
I ran the following commands to install NVM: 我运行以下命令来安装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
It works fine and I can run nvm without any issue but once I close and re-open the terminal it prompts with the following error: 它运行正常,我可以正常运行nvm,但是一旦关闭并重新打开终端,它会提示以下错误:
-bash: nvm: command not found -bash:nvm:找不到命令
What is wrong? 怎么了?
MAC Version: 10.14.5 MAC版本:10.14.5
I have already node v11.13.0 installed. 我已经安装了节点v11.13.0。
如https://github.com/nvm-sh/nvm所述,在安装nvm之前,我必须先运行touch〜 touch ~/.bash_profile
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.