Skip to content

Instantly share code, notes, and snippets.

@budiantoip
Last active May 20, 2025 11:50
Show Gist options
  • Save budiantoip/fb4d04c80f4cf05f33deace08984e8eb to your computer and use it in GitHub Desktop.
Save budiantoip/fb4d04c80f4cf05f33deace08984e8eb to your computer and use it in GitHub Desktop.
Node Version Manager (NVM)

Installation

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

To check the latest nvm version, visit https://github.com/nvm-sh/nvm, and check the available tags

How to get the list of available node versions

nvm ls-remote

How to install node version v14.15.4

nvm install v14.15.4

How to install the latest LTS version

nvm install --lts

How to use version v14.15.4

nvm use v14.15.4

How to use the latest LTS version

nvm use --lts

How to make version v14.15.4 as default one, it will be loaded on each bash session

nvm alias default v14.15.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment