Volta
A really nice tool to manage the different Node.js/npm/yarn versions between projects:
The problems it solves
- Making sure everyone who works on the project uses the same Node.js/npm/yarn version for consistent dependencies tree and Node.js execution.
- Switching the Node.js version when jumping between projects.
- Not losing your global packages when switching the Node.js version (I think that was a problem with nvm).
- Cross platform solution (nvm/n don't work on Windows).
Other Notes
- Built with Rust, so it's really fast.
- More seamless then the alternatives (nvm auto-switch, avn).
- Basically it hijacks the precedence of finding the
node
/npm
/yarn
executables in yourPATH
and redirects to the proper versions based on a setting in yourpackage.json
. - So, it can be installed alongside the other tools to try out and can be removed without causing problems.
- Basically it hijacks the precedence of finding the
I personally uninstalled everything else and now using only Volta.
Although maybe that wasn't such a good idea:
volta-cli/volta#282 (comment)
Why not
engines
frompackage.json
?Why not
.nvmrc
or.node-version
?