Projects use a .nvmrc file (or, sometimes .node-version file) to specify the required Node.js version, eliminating the need to manually pass it via the command line and remembering which version each project requires.
Install nvm
nvm install
nvm useThe most popular alternative for nvm is nvm for Windows, but it doesn't support .nvmrc files, at least not ergonomically.
A comment by @jednano suggests following workarounds:
nvm install $(Get-Content .nvmrc)
nvm use $(Get-Content .nvmrc)cat .nvmrc | nvm install
cat .nvmrc | nvm useYou may prefer to use less-popular tools that support .nvmrc.
nvs is a cross-platform tool that works on Linux, MacOS as well as Windows.
nvs add
nvm use auto