Skip to content

Instantly share code, notes, and snippets.

@dehsilvadeveloper
Last active January 9, 2025 12:08
Show Gist options
  • Save dehsilvadeveloper/d6ecfa16474317cd68b3a78f5b2f1fe1 to your computer and use it in GitHub Desktop.
Save dehsilvadeveloper/d6ecfa16474317cd68b3a78f5b2f1fe1 to your computer and use it in GitHub Desktop.
Useful NVM commands (and how to check Node, NPM and NVM versions)

Useful NVM commands (and how to check Node, NPM and NVM versions)

Comandos úteis do NVM (e como checar as versões do Node, NPM and NVM)

Useful NVM commands

List locally installed versions of Node:

nvm ls or nvm list node

List available remote versions of Node:

nvm ls-remote

Install specific version of Node:

nvm install 18.16.1

Install latest LTS (Long Term Support) version of Node:

nvm install --lts

Install latest stable version of Node:

nvm install stable

Switch to another version of Node:

nvm use 20.5.1

Path to where a specific Node version is installed:

nvm which 18.16.1

Uninstall a specific Node version:

nvm uninstall 20.5.1

Versions check

Check Node version:

node -v or node --version

Check NPM version:

npm -v

Check NVM version:

nvm -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment