一、安装NVM[root@localhost nginx]# yum install -y curl[root@localhost nginx]# yum install -y wget# 使用curl或wget安装curl-o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh|bash# 或者使用国内的# 使用 gitee 镜像curl-o- https://gitee.com/mirrors/nvm/raw/v0.39.7/install.sh|bash[root@localhost nginx]# wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash# 检查安装是否成功,需要重新打开终端测试[root@localhost nginx]# nvm --version0.39.7二、查看远程可安装版本和本地已经安装的版本查看所有可安装的 LTS(长期支持) 版本如果你只想查看 LTS(长期支持) 版本(推荐用于生产环境),可以使用:[root@localhost nginx]# nvm ls-remote --ltsv4.2.0(LTS: Argon)v4.2.1(LTS: Argon)v4.2.2(LTS: Argon)。。。。 v22.13.1(LTS: Jod)v22.14.0(LTS: Jod)v22.15.0(LTS: Jod)v22.15.1(LTS: Jod)v22.16.0