Skip to content

Instantly share code, notes, and snippets.

@keimlink
Last active August 19, 2021 23:19
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save keimlink/def691fe2253a33d3e15f021458b2834 to your computer and use it in GitHub Desktop.
Save keimlink/def691fe2253a33d3e15f021458b2834 to your computer and use it in GitHub Desktop.
nvm vs Volta

nvm vs Volta

A comparison of nvm and Volta to manage Node.js projects (without Yarn).

Bootstrap Project with nvm

nvm install

Note: Node.js version is pinned in .nvmrc.

Bootstrap Project with Volta

Not necessary.

Install Node.js Dependencies with nvm

npm install

Install Node.js Dependencies with Volta

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.

Continue Work with a Project with nvm

cd project
nvm use

Continue Work with a Project with Volta

cd project

Note: No extra steps necessary with Volta.

Update Node.js version with nvm

nvm install

Update Node.js version with Volta

The next time npm install is executed Volta will automatically update Node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment