
These two features combined mean that Volta solves the problem of global packages. What’s more, Volta covers its tracks whenever it runs a tool, making sure your npm or Yarn scripts never see what’s in your toolchain. This means you don’t have to worry about changing the state of your installed software when switching between projects. Tsc -version # 4.1.5 Safety and convenienceīecause Volta’s toolchain always keeps track of where you are, it makes sure the tools you use always respect the settings of the project you’re working on. Tsc -version # 3.9.4 cd /path/to/project-using-typescript-4.1.5 When you choose a default version, Volta will also download that version to the local cache.įor example, you can select an exact version of node to be your default version:Ĭd /path/to/project-using-typescript-3.9.4 Volta will always use this default, unless you’re working within a project directory that has configured Volta to use a different version. To install a tool to your toolchain, you set the default version of that tool. You control the tools managed by your Volta toolchain with two commands: volta install and volta uninstall. The tools in your Volta toolchain automatically detect when you’re in a project that’s using a particular version of the tools, and take care of routing to the right version of the tools for you.

Similar to package managers, Volta keeps track of which project (if any) you’re working on based on your current directory.

Volta’s job is to manage your JavaScript command-line tools, such as node, npm, yarn, or executables shipped as part of JavaScript packages.
