avatarRiccardo Giorato
# Summary

Volta.sh is presented as a superior alternative to Node Version Manager (NVM), offering a hassle-free solution for managing JavaScript tools and versions in 2023.

# Abstract

The web content introduces Volta.sh as a more efficient and reliable tool compared to NVM for developers working with JavaScript. It emphasizes that Volta.sh eliminates the need to manually switch Node versions with commands like "nvm use," as it automatically manages the correct versions for each project. The article highlights Volta.sh's features such as easy setup and switching of Node engines, reproducible environments for collaborators, and support for multiple package managers. It also notes that Volta.sh is built with Rust, ensuring high performance. Installation instructions for Mac, Linux, and Windows are provided, and the benefits of using Volta.sh, such as seamless per-project version switching and cross-platform support, are detailed.

# Opinions

- The author believes that Volta.sh fixes the issues associated with NVM.
- Volta.sh is considered to provide a quicker and more efficient way to manage Node versions and package managers.
- The article suggests that Volta.sh's ability to save and commit specific Node engine versions in `package.json` enhances collaboration among developers.
- The author expresses that Volta.sh's automatic version switching is superior to NVM's manual process, which requires remembering to run "nvm use" in each new terminal session.
- The article conveys enthusiasm about Volta.sh being built with Rust, implying that it is fast and robust.

The Better and Superior alternative to NVM to start using in 2023!

Why you should stop using Node Version Manager — Start using Volta.sh

Volta — The Hassle-Free JavaScript Tool Manager

You can finally forget to run “nvm use” or NVM.

Volta will fix all your issues with NVM!

Getting Started

Installing Volta on Mac or Linux:

curl https://get.volta.sh | bash

Installing Volta on Windows

  1. Install the Volta msi: https://github.com/volta-cli/volta/releases/download/v1.0.5/volta-1.0.5-windows-x86_64.msi,
  2. Enable developer mode: Enable your device for development — Windows apps | Microsoft Docs

Why?

  1. Quickly set up and switch Node engines.
  2. Reproducible environments for collaborators.
  3. Seamless, per-project version switching.
  4. Support for multiple package managers.
  5. Cross-platform support, including Windows and all Unix shells.
  6. Did I forget? It’s made with Rust and it’s super Fast!

Quickly set up and switch Node engines

Fetch and use a particular version of Node like version 16:

volta install node@16

Or fetch a specific version of Yarn.

volta install yarn@1.19.2

Reproducible environments for collaborators.

Volta saves the exact version of the Node engine in your package.json so you can commit your selection to git with the command “pin”.

volta pin node@12

This also works for yarn!

volta pin yarn@1.19.2

From that point on, every time you run Node/Yarn/NPM/… inside your project directory, Volta automatically switches to that same version of Node you chose. Similarly, all your collaborators can do the same by installing Volta on their development machine.

You can forget to run “nvm use” on every new terminal!!!

Seamless, per-project version switching

With NVM each time you create a new terminal you need to remember to run the command “nvm use” to use the project correct tools and versions.

Volta does this automatically, without interfering with your workflow. You don’t need to run any extra command. Volta automatically redirects your OS to run the correct version on each terminal based on the current project.

References and Resources

Volta
Nvm
Node Version Manager
Nodejs
NPM
Recommended from ReadMedium