How nvm-sh/nvm works
nvm is a per-user, per-shell Node.js version manager. The main workflow is to install and load nvm, install a Node version, then select it for the current shell; users can also list versions, manage aliases, and use project .nvmrc files. The README documents additional capabilities including io.js, offline installs, mirrors, package migration, and shell completion. Source excerpts are unavailable for runtime implementation details, so paths and relationships below rely on the tree and documented behavior.
Main entry points: nvm.sh Install version · install.sh Installer · nvm-exec Command executor · bash_completion Bash completion
Components 16
Setup and shell
- Installer
install.sh - Shell runtime
nvm.sh - Command executor
nvm-exec - Bash completion
bash_completion
Version management
- Install version
nvm.sh - Select version
nvm.sh - Version listing
nvm.sh - Alias management
nvm.sh - Installed versions
nvm.sh
Project integration
- Project version
nvm.sh
Additional capabilities
- Package migration
nvm.sh - Offline install
nvm.sh - Mirror support
nvm.sh - io.js versions
nvm.sh
Other components
- Shell user
- Node.js source
Connections 18
- Shell user → Installer: runs installer
README.md - Installer → Shell runtime: installs runtime
README.md - Shell user → Shell runtime: loads and invokes
README.md - Shell user → Command executor: runs command
README.md - Shell user → Bash completion: requests completion
README.md - Shell user → Install version: requests install
README.md - Install version → Installed versions: installs version
- Shell user → Select version: selects version
README.md - Select version → Installed versions: uses installed version
- Shell user → Version listing: lists versions
README.md - Shell user → Alias management: manages aliases
README.md - Shell user → Project version: uses project config
README.md - Project version → Select version: selects configured version
- Shell user → Package migration: migrates packages
README.md - Shell user → Offline install: installs offline
README.md - Shell user → Mirror support: configures mirror
README.md - Shell user → io.js versions: uses io.js
README.md - Install version → Node.js source: obtains releases