Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@phillipharding
Last active May 14, 2020 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipharding/65bed4fe63763e1a96c15f5f994bebc7 to your computer and use it in GitHub Desktop.
Save phillipharding/65bed4fe63763e1a96c15f5f994bebc7 to your computer and use it in GitHub Desktop.

NVM version

nvm --version

List versions of Node installed

nvm ls --no-alias

List current version of Node

nvm current

Use the specified version of Node

nvm use 10.19.0

nvm use 8.15.0

Show install locations of Node that is currently installed

nvm which current | <8.15.0>

Show install locations of Node 8 that are currently installed

nvm which 8

Intall Node version 10 LTS with the latest NPM and reinstall packages from the installed Node v8.15.0

nvm install 10 --lts --latest-npm --reinstall-packages-from=8.15.0

Reinstall packages from Node version 8.15.0

nvm reinstall-packages 8.15.0

Install the latest version of NPM

nvm install-latest-npm

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