nvm
Manage multiple Node.js versions
TLDR
Install a specific version of Node.js
Use a specific version of Node.js in the current shell
Set the default Node.js version
List all available Node.js versions and highlight the default one
Uninstall a given Node.js version
Launch the REPL of a specific version of Node.js
Execute a script in a specific version of Node.js
SYNOPSIS
nvm <command> [<arguments>]
Common commands:
nvm install <version>
nvm use <version>
nvm ls [<remote|installed>]
nvm alias <name> <version>
nvm uninstall <version>
PARAMETERS
install
Installs a specified Node.js version (e.g., 18.17.1, lts/gallium, node).
use
Switches to and uses the specified Node.js version in the current shell.
ls
Lists all Node.js versions installed by nvm.
ls-remote
Lists all available Node.js versions for remote installation.
alias
Creates or manages aliases for installed Node.js versions (e.g., default, lts).
uninstall
Removes an installed Node.js version from your system.
current
Displays the currently active Node.js version managed by nvm.
which
Shows the path to the Node.js executable for a given version.
run