nvm

Open Source

by nvm

Provided by nvm

Not yet rated
Platform
Linux / macOS
Pricing
Open Source
Account required
No
Ads
None
Last verified
21 hours ago
Developer
nvm
Official URL

Overview

nvm (Node Version Manager) is a command-line tool that lets you install several versions of Node.js side by side and switch between them. It is installed per user and works per shell, so one terminal can run an older long-term-support release while another runs the newest one, without touching any system-wide install.

You install it by running the project's install script with curl or wget, or by cloning the repository into your home folder; the script adds a couple of lines to your shell profile. After that, commands such as nvm install, nvm use and nvm alias default handle downloading, selecting and pinning versions. A project can carry an .nvmrc file naming the version it expects, and nvm use, nvm install and nvm which pick that up when no version is given.

nvm works in POSIX-compliant shells such as bash, zsh, dash and ksh on macOS, Linux and other Unix systems, and on Windows through WSL. Native Windows and the fish shell are not supported; the README points to separate, unrelated projects for those. It is released under the MIT licence.

Features

  • Installs multiple Node.js versions side by side in your home folder
  • Switches the active version per shell with nvm use
  • Installs the latest release or the latest long-term-support line by name
  • Reads a project's .nvmrc file to pick the right version
  • Sets a default version for new shells through an alias
  • Lists installed versions and the versions available to download
  • Runs a single command under a chosen version with nvm exec or nvm run
  • Copies globally installed packages from one version to another
  • Falls back to compiling Node from source where no prebuilt binary exists

Privacy

See the official privacy policy. nvm is a shell script that runs on your own machine and has no accounts; it downloads Node.js releases when you ask it to install a version.

Pros & Cons

Pros

  • Free and open source under the MIT licence
  • Per-user install that needs no administrator rights for day-to-day use
  • An .nvmrc file keeps a whole team on the same Node version
  • Works in bash, zsh, dash, ksh and other POSIX shells

Cons

  • No native Windows support; it only runs there through WSL, or partly through Git Bash or Cygwin
  • The fish shell is not supported
  • Installing through Homebrew is not supported by the project
  • On platforms without official Node binaries it has to compile from source, which is slow

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Node.js · Node.js

    Runs JavaScript outside the browser as a server-side runtime.

    Not yet rated
    Open Source Windows Linux
  • npm
    Node.js · npm

    Installs and manages JavaScript packages and dependencies.

    Not yet rated
    Free Web
  • PM2
    Node.js · PM2

    Runs and monitors Node.js applications in production.

    Not yet rated
    Open Source Windows Linux