Watch: Use the right Node version for each project | Vovy

Watch Vovy do it on a Mac: "This project needs Node 20 but my other one needs 22, make them both work". Vovy pins each project to its Node version with an .nvmrc file and sets your shell to switch automatically when you cd into the folder.

"This project needs Node 20 but my other one needs 22, make them both work"

Vovy pins each project to its Node version with an .nvmrc file and sets your shell to switch automatically when you cd into the folder.

What happens in the video

  1. Find each project's version: Vovy reads the engines field in package.json, CI files and your host's settings to learn which Node version each project needs.
  2. Install the missing versions: Vovy uses nvm to install each needed version side by side. Nothing is removed.
  3. Add an .nvmrc to each project: Vovy writes a one-line .nvmrc file with the version number. It tells nvm, and teammates, which Node to use.
  4. Turn on auto-switching: Vovy adds a small hook to ~/.zshrc that runs nvm use whenever you open a folder with an .nvmrc.
  5. Test both projects: Vovy opens each project, shows node -v switching correctly, and gives you a card of what is pinned where.
Read the step-by-step guide