To automatically switch Node versions per project, use nvm with a .nvmrc
file. Just place the desired Node version in .nvmrc
, then run nvm use
. For full automation, add a script to your shell config or use tools like avn to auto-switch on directory change.