LinuxCommandLibrary

nvm

node Version Manager

TLDR

Install Node.js version

$ nvm install [version]
copy
Install latest LTS
$ nvm install --lts
copy
Use specific version
$ nvm use [version]
copy
List installed versions
$ nvm ls
copy
List available versions
$ nvm ls-remote
copy
Set default version
$ nvm alias default [version]
copy

SYNOPSIS

nvm [command] [options]

DESCRIPTION

nvm is Node Version Manager. Manages multiple Node.js installations.
The tool enables version switching per project. Shell-based version management.

PARAMETERS

install VERSION

Install Node.js version.
use VERSION
Switch to version.
ls
List installed versions.
ls-remote
List available versions.
alias NAME VERSION
Create version alias.
uninstall VERSION
Remove version.
--help
Display help information.

CAVEATS

Shell function not executable. Source in profile. Per-shell activation required.

HISTORY

nvm was created to allow easy switching between Node.js versions for development.

SEE ALSO

node(1), npm(1), fnm(1), n(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community