I can switch Node version with the command nvm use {version}
.
With different node versions used by projects, I wish to use a specific version for a local project without switching versions.
But when I use nvm use {version}
the version is set globally.
I read here you can use a local .nvmrc
in the project then by the CLI nvm use
to trigger it pick up the version number from .nvmrc
.
Somehow .nvmrc
is gitignored in the project . I want all developers on a project to use the same version of Node.
Any others alternatives ?
PS: yes, I could just change the .gitignore file . But this has been set for unknown historical reasons. Before I find the answer on the local .nvmrc
, let's find alternatives