A comparison of nvm and Volta to manage Node.js projects (without Yarn).
nvm install
Note: Node.js version is pinned in .nvmrc
.
Not necessary.
npm install
npm install
Note: Volta installs the right Node.js version when running npm install
if the version is pinned in the volta
section in package.json
.
cd project
nvm use
cd project
Note: No extra steps necessary with Volta.
nvm install
The next time npm install
is executed Volta will automatically update Node.js.