I ran the following commands to install 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:
-bash: nvm: command not found
What is wrong?
MAC Version: 10.14.5
I have already node v11.13.0 installed.
如https://github.com/nvm-sh/nvm所述,在安装nvm之前,我必须先运行touch〜 touch ~/.bash_profile
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.