Volta’s job is to manage your JavaScript command-line tools, such as node
, npm
, yarn
, or executables shipped as part of JavaScript packages.
Similar to package managers, Volta keeps track of which project (if any) you’re working on based on your current directory. 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.
Install:
curl https://get.volta.sh | bash
Depending on the project you’re in, this executable will switch to the project’s chosen version of TypeScript:
/path/to/project-using-typescript-2.9.2 tsc --version # 2.9.2 cd /path/to/project-using-typescript-3.4.5 tsc --version # 3.4.5