Skip to content

nvm

GitHub

text
https://github.com/nvm-sh/nvm

安装

bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
bash
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

常用命令

bash
# 查看当前安装的版本
nvm -v

# 查看可安装的版本
nvm ls-remote

# 安装指定版本
nvm install <version>

# 使用指定版本
nvm use <version>

# 卸载指定版本
nvm uninstall <version>