Created: 2019 October 26th
Updated: 2021 March 3rdEdit this page on GitHub
If a project uses a specific version of node a
.nvmrc file can be
generated with the following command.
When using the project for the first time (in a while maybe) then use
nvm use command to make sure you’re using the correct node
Say you want to install Node v6.9.1 you would write on the terminal:
If you have multiple versions of Node.js installed on your workspace, you can switch to a specific version by writing:
Making a node version default
In order to set a default version of node for your workspace, type:
Where 6 was the version you wanted to be used as default.