Overview
nvm (Node Version Manager) is a robust, POSIX-compliant bash script designed to simplify the management of multiple Node.js versions on your system. It empowers developers to effortlessly install, switch between, and manage different Node.js environments on a per-user and per-shell basis.
Key Features
- Multiple Version Management: Seamlessly install, manage, and switch between any Node.js version, from the latest releases to older LTS versions.
- Per-Shell Activation:
nvmoperates on a per-shell basis, ensuring your development environment is precisely configured for the task at hand without global system conflicts. - Simple Installation & Updates: Install or update
nvmwith a single, straightforward command. - Alias Support: Create custom aliases for Node.js versions for even quicker switching.
.nvmrcIntegration: Automatically use specific Node.js versions by simply placing a.nvmrcfile in your project directory.- Cross-Platform Compatibility: Works on any POSIX-compliant shell, including bash, zsh, and dash, across Unix, macOS, and Windows Subsystem for Linux (WSL).
- Offline Installation: Supports offline installation of Node.js versions.
- Global Package Migration: Effortlessly migrate global packages between installed Node.js versions.
Typical Use Cases
- Developing for different Node.js versions: Easily switch between versions required by different projects or client specifications.
- Testing applications: Quickly verify your Node.js applications run correctly across multiple Node.js versions.
- Staying up-to-date: Adopt the latest Node.js features and security patches without disrupting your existing workflows.
- Experimenting with new Node.js releases: Try out beta or release candidate versions in an isolated environment.
- CI/CD pipelines: Configure consistent Node.js environments for automated builds and deployments.
