Best Node version manager - Volta

Volta is the best Node version manager

(also great to manage versions for rest of your teams toolchain - Yarn, etc)


# install Volta
curl https://get.volta.sh | bash

# install Node
volta install node

# start using Node

Add version/set Node version in package.json

  "engines": {
    "node": "10"
  "volta": {
    "node": "10.23.1"

Off you go!



Your local development environment does not/will not match the production environment.

The more closely you replicate the production environment for development the better. Less surprises. More predictability. Avoid the “It works on my machine”. Basically we all do less work debugging the inconsistencies across versions later. Win win win.

Common scenario is each team member’s machine might be on a different version. Node 12, Node 14, etc, also your production environment generally is on an older lts (Long Term Support) version. Probably not going to run into much Node 8 anymore, still some Node 10 environments, more and more Node 12 available on cloud providers lately, but chances are your local machine is Node 14 or even Node 15 depending how/when you installed Node.

Nvm (Node Version Manager) is another tool/the defacto for managing versions, but Volta is much simpler install and don’t have to fuss with helping teammates sort NVM and multiple Node installs on their machines…

Happy Coding!

Subscribe to Nick Foden

Get the latest posts delivered right to your inbox



Excited about JS

Read More