nvm volta node version


 

https://docs.volta.sh/guide/getting-started

 

curl https://get.volta.sh | bash
# add to package.json
  "volta": {
    "node": "12.22.12",
    "npm": "8.19.4"
  },
# just run
npm -v
node -v

 

 

 

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
nvm install 20
nvm use 20
node -v