Skip to content

Instantly share code, notes, and snippets.

@narenthera
Forked from chranderson/nvmCommands.js
Created January 16, 2025 05:53
Show Gist options
  • Save narenthera/fed86ceffd85a0ecddaf971d6115e767 to your computer and use it in GitHub Desktop.
Save narenthera/fed86ceffd85a0ecddaf971d6115e767 to your computer and use it in GitHub Desktop.

Revisions

  1. @chranderson chranderson revised this gist Aug 11, 2023. 1 changed file with 13 additions and 4 deletions.
    17 changes: 13 additions & 4 deletions nvmCommands.js
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,23 @@
    // check version
    node -v || node --version

    // list installed versions of node (via nvm)
    // list locally installed versions of node
    nvm ls

    // list remove available versions of node
    nvm ls-remote

    // install specific version of node
    nvm install 6.9.2
    nvm install 18.16.1

    // set default version of node
    nvm alias default 6.9.2
    nvm alias default 18.16.1

    // switch version of node
    nvm use 6.9.1
    nvm use 20.5.1

    // install latest LTS version of node (Long Term Support)
    nvm install --lts

    // install latest stable version of node
    nvm install stable
  2. @chranderson chranderson created this gist Dec 7, 2016.
    14 changes: 14 additions & 0 deletions nvmCommands.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    // check version
    node -v || node --version

    // list installed versions of node (via nvm)
    nvm ls

    // install specific version of node
    nvm install 6.9.2

    // set default version of node
    nvm alias default 6.9.2

    // switch version of node
    nvm use 6.9.1