nodebrew is a straightforward version manager for Node.js that installs into your home directory and lets you switch Node versions with a single command. It can download official binaries or build from source, track multiple installed versions, and set a global “current” version by updating your shell PATH. The tool keeps Node and npm isolated per version, which prevents project conflicts and makes upgrades or rollbacks reversible. Commands for listing, aliasing, and uninstalling versions keep long-lived environments tidy, while simple shims make the active toolchain transparent to existing scripts. Because nodebrew is lightweight and has minimal external dependencies, it’s popular on servers, CI agents, and developer laptops alike. In everyday use, it removes the friction from testing code against multiple Node releases and keeping old projects alive alongside new ones.
Features
- Install specific, latest, or stable Node.js versions
- Compile Node.js from source with configurable flags (compile command)
- Easily switch active Node.js version via use command
- List local (ls) and remote (ls-remote, ls-all) versions
- Supports aliases to simplify version switching
- Self-update capability and temporary execution with exec