Skip to content

Instantly share code, notes, and snippets.

@MichaelCurrin
Last active May 1, 2025 16:03
Show Gist options
  • Select an option

  • Save MichaelCurrin/5c2d59b2bad4573b26d0388b05ab560e to your computer and use it in GitHub Desktop.

Select an option

Save MichaelCurrin/5c2d59b2bad4573b26d0388b05ab560e to your computer and use it in GitHub Desktop.

Revisions

  1. MichaelCurrin revised this gist Oct 17, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install-node-using-nvm.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    **Install Node using NVM**

    A guide to using NVM to install versions of Node.

    If you don't have NVM yet, see [Install NVM](https://gist.github.com/MichaelCurrin/662f5b5ad93699b112b7de4c10991bda) gist.

    1. Install a target Node.js version. A short version will do.
    ```sh
  2. MichaelCurrin revised this gist Jun 28, 2021. No changes.
  3. MichaelCurrin renamed this gist Jun 10, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install_node_with_nvm.md → install-node-using-nvm.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    **Setup Node using NVM**
    **Install Node using NVM**

    A guide to using NVM.
    A guide to using NVM to install versions of Node.

    1. Install a target Node.js version. A short version will do.
    ```sh
    @@ -57,4 +57,4 @@ A guide to using NVM.

    You can install more versions side by side and choose to activate any given one.

    You can also set a _default_ version so a new terminal starts with a given version activated. changing to use another version won't affect the default or other terminals.
    You can also set a _default_ version so a new terminal starts with a given version activated. changing to use another version won't affect the default or other terminals.
  4. MichaelCurrin revised this gist Oct 1, 2020. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install_node_with_nvm.md
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,11 @@

    A guide to using NVM.

    1. Install a target Node.js version.
    1. Install a target Node.js version. A short version will do.
    ```sh
    $ nvm install 14
    ```
    1. Select the installed version. You can don't have to enter the entire version number.
    1. Select the installed version.
    ```sh
    $ nvm use 14
    Now using node v14.9.0 (npm v6.14.8)
    @@ -21,7 +21,7 @@ A guide to using NVM.
    $ which node
    /Users/mcurrin/.nvm/versions/node/v14.9.0/bin/node
    ```
    1. List available versions installed.
    1. List available installed versions.
    ```sh
    $ nvm ls
    v10.0.0
  5. MichaelCurrin created this gist Oct 1, 2020.
    60 changes: 60 additions & 0 deletions install_node_with_nvm.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    **Setup Node using NVM**

    A guide to using NVM.

    1. Install a target Node.js version.
    ```sh
    $ nvm install 14
    ```
    1. Select the installed version. You can don't have to enter the entire version number.
    ```sh
    $ nvm use 14
    Now using node v14.9.0 (npm v6.14.8)
    ```
    1. Check that your target Node.js version works.
    ```sh
    $ node -v
    v14.9.0
    $ npm -v
    6.14.8
    $ which node
    /Users/mcurrin/.nvm/versions/node/v14.9.0/bin/node
    ```
    1. List available versions installed.
    ```sh
    $ nvm ls
    v10.0.0
    v10.15.0
    v14.9.0
    -> system
    default -> node (-> v14.9.0)
    ...
    ```
    1. List versions which can be installed.
    ```sh
    $ nvm ls-remote
    ```
    That is very long, so you can use a grep pattern instead.
    ```sh
    $ nvm ls-remote 14
    v14.0.0
    v14.1.0
    v14.2.0
    v14.3.0
    v14.4.0
    v14.5.0
    v14.6.0
    v14.7.0
    v14.8.0
    v14.9.0
    v14.10.0
    v14.10.1
    v14.11.0
    v14.12.0
    v14.13.0
    ```
    You can install more versions side by side and choose to activate any given one.
    You can also set a _default_ version so a new terminal starts with a given version activated. changing to use another version won't affect the default or other terminals.