centos安装nvm
wget https://github.com/nvm-sh/nvm/archive/refs/tags/v0.39.1.tar.gz
ll
mkdir /root/.nvm/
tar -zxvf v0.39.1.tar.gz -C /root/.nvm
cd /root/.nvm/nvm-0.39.1/
sh install.sh
source /root/.bashrc
nvm list
nvm --version
nvm ls-remote
nvm install v18.17.1
nvm install v18.20.0
nvm install v20.12.0
nvm use v18.17.1
nvm ls
node -v
npm i pm2 yarn -g