📜  nvm install ubuntu - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:15.194000             🧑  作者: Mango

代码示例6
## Using curl
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
## Using wget 
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash

##After install, load the NVM config in your shell
## ~/.bashrc or ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm