安装nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash 查看nvm版本 nvm --version 安装nodejs特定版本 nvm install 20.10.0 安装npm特定版本 npm install -g npm@10.2.3 查看nodejs版本 node -v 查看npm版本 npm -v