# Node Version Manager (nvm)
nvm (Node Version Manager) is a [[Bash]] script that manages multiple installations of Node.js on a single machine. It allows developers to install, switch between, and remove different Node.js versions with simple commands like `nvm install 20` or `nvm use 18`. This is essential when working on multiple projects that require different Node.js versions, or when testing compatibility across versions.
nvm works by managing Node.js installations in `~/.nvm` and modifying the shell's PATH to point to the active version. It supports `.nvmrc` files for per-project version pinning, so teams can ensure everyone uses the same Node.js version. It runs on [[Linux]] and macOS. For Windows, the equivalent is nvm-windows.
## References
- https://github.com/nvm-sh/nvm
## Related
- [[JavaScript]]
- [[TypeScript]]
- [[Bash]]
- [[Linux]]