NVM cheat sheet

Basics

Installation

$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

Usage

Install latest version

$ nvm install node # install latest version

Install specific version

$ nvm install 6.14.4

List available version

$ nvm ls-remote

Install LTS

$ nvm install --lts

Use an installed version

$ nvm use node