Skip to content

Instantly share code, notes, and snippets.

@d2s
Last active September 28, 2025 05:45
Show Gist options
  • Save d2s/372b5943bce17b964a79 to your computer and use it in GitHub Desktop.
Save d2s/372b5943bce17b964a79 to your computer and use it in GitHub Desktop.

Revisions

  1. d2s revised this gist Dec 13, 2024. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -47,12 +47,12 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v20.11.1`
    - `nvm install v22.12.0`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v21.6.2`
    - `nvm install v23.4.0`
    4. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v20.11.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.11.1) (for _production quality_ applications)
    - `nvm alias default v21.6.2` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V21.md#21.6.2) (if you use Node.js features from the _Current_ release)
    - `nvm alias default v22.12.0` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V22.md#2024-12-03-version-22120-jod-lts-ruyadorno) (for _production quality_ applications)
    - `nvm alias default v23.4.0` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V23.md#23.4.0) (if you use Node.js features from the _Current_ release)

    You can select Node.js version by running `nvm use v20.11.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -68,18 +68,18 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v20.11.1`
    - `nvm use v21.6.2`
    - `nvm use v22.12.0`
    - `nvm use v23.4.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v20.3.1`
    - `nvm reinstall-packages v20.11.1`
    - `nvm reinstall-packages v18.16.1`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v20.3.1`
    - `nvm uninstall v20.11.1`
    - `nvm uninstall v18.16.1`
    ---
  2. d2s revised this gist Dec 13, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer. (If you already had it, remember to update to more recent versions.)
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
  3. d2s revised this gist Feb 28, 2024. 1 changed file with 14 additions and 19 deletions.
    33 changes: 14 additions & 19 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer. (If you already had it, remember to update to more recent versions.)
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
    @@ -47,45 +47,40 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v18.16.1`
    - `nvm install v20.11.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v20.3.1`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) (if you need to run older applications)
    - `nvm install v16.20.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v18.16.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.16.1) (for _production quality_ applications)
    - `nvm alias default v20.3.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.3.1) (if you use Node.js features from the _Current_ release)
    - `nvm alias default 16.20.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#16.20.1) (if you need to use old version of Node.js for _older_ projects)
    - `nvm install v21.6.2`
    4. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v20.11.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.11.1) (for _production quality_ applications)
    - `nvm alias default v21.6.2` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V21.md#21.6.2) (if you use Node.js features from the _Current_ release)

    You can select Node.js version by running `nvm use v18.12.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v20.11.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    [npm](https://www.npmjs.com/) package repository has a lot of packages to discover.
    Have a good time with the freshly installed tools.


    ## Migrating packages from a previous Node.js version

    If you already have existing Node.js version via `nvm`, you can migrate older packages from the installed Node.js versions.

    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v20.3.1`
    - `nvm use v18.12.1`
    - `nvm use v16.20.1`
    - `nvm use v20.11.1`
    - `nvm use v21.6.2`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v18.12.1`
    - `nvm reinstall-packages v16.19.0`
    - `nvm reinstall-packages v20.3.1`
    - `nvm reinstall-packages v18.16.1`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v18.12.1`
    - `nvm uninstall v16.19.0`
    - `nvm uninstall v20.3.1`
    - `nvm uninstall v18.16.1`
    ---
  4. d2s revised this gist Aug 22, 2023. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer. (If you already had it, remember to update to more recent versions.)
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
  5. d2s revised this gist Jun 29, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -55,7 +55,7 @@ A quick guide on how to setup Node.js development environment.
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v18.16.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.16.1) (for _production quality_ applications)
    - `nvm alias default v20.3.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.3.1) (if you use Node.js features from the _Current_ release)
    - `nvm alias default 16.20.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.20.1) (if you need to use old version of Node.js for _older_ projects)
    - `nvm alias default 16.20.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#16.20.1) (if you need to use old version of Node.js for _older_ projects)

    You can select Node.js version by running `nvm use v18.12.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

  6. d2s revised this gist Jun 29, 2023. 1 changed file with 21 additions and 24 deletions.
    45 changes: 21 additions & 24 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,13 +10,14 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer. (If you already had it, remember to update to more recent versions.)
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
    export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
    [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
    ```

    - Another option: when you have consistent directory location between systems, following example Bash/Zsh configuration allows to load `nvm` when the directory exists.
    @@ -46,17 +47,15 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v18.12.1`
    - `nvm install v18.16.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v19.3.0`
    4. Install previous LTS releases of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v16.19.0`
    - `nvm install v14.21.2`
    - `nvm install v20.3.1`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) (if you need to run older applications)
    - `nvm install v16.20.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v18.12.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.12.1) (for _production quality_ applications)
    - `nvm alias default v19.3.0` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V19.md#19.3.0) (if you use Node.js features from the _Current_ release)
    - `nvm alias default v16.19.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.19.0) (if you need to use old version of Node.js for _older_ projects)
    - `nvm alias default v14.21.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.21.2) (if you need to use old version of Node.js for _even older_ projects)
    - `nvm alias default v18.16.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.16.1) (for _production quality_ applications)
    - `nvm alias default v20.3.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.3.1) (if you use Node.js features from the _Current_ release)
    - `nvm alias default 16.20.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.20.1) (if you need to use old version of Node.js for _older_ projects)

    You can select Node.js version by running `nvm use v18.12.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -73,23 +72,20 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v19.3.0`
    - `nvm use v20.3.1`
    - `nvm use v18.12.1`
    - `nvm use v16.19.0`
    - `nvm use v14.21.2`
    - `nvm use v16.20.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v18.8.0`
    - `nvm reinstall-packages v16.17.0`
    - `nvm reinstall-packages v14.20.0`
    - `nvm reinstall-packages v18.12.1`
    - `nvm reinstall-packages v16.19.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v16.17.0`
    - `nvm uninstall v18.8.0`
    - `nvm uninstall v14.20.0`
    - `nvm uninstall v18.12.1`
    - `nvm uninstall v16.19.0`
    ---
    @@ -158,8 +154,9 @@ npm rebuild

    - [Debian 11.2](https://www.debian.org/News/2021/20211218)
    - [Debian 10](https://www.debian.org/News/2019/20190706)
    - [Ubuntu on WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)
    - [Ubuntu 18.04 LTS](http://releases.ubuntu.com/bionic/)
    - [Ubuntu on WSL2 (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)
    - [Ubuntu 20.04 LTS](http://releases.ubuntu.com/bionic/)
    - [Ubuntu 22.04 LTS](https://releases.ubuntu.com/jammy/)

    ## Contributions

  7. d2s revised this gist Dec 15, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -111,7 +111,7 @@ npm outdated -g --depth=0.
    #### Updating all globally installed npm packages
    > _Warning:_ This might be too risky approach. Instead, it is better to update packages individually, as that avoids the risk of accidentally updating `npm` package to incompatible versions. `npm v9` installation to older incompatible Node.js environments is known to cause problems (potentially breaking down the development environment), so it's better be safe than sorry.
    > _Warning:_ **This might be too risky approach.** Instead, it is better to update packages individually, as that avoids the risk of accidentally updating `npm` package to incompatible versions. `npm v9` installation to older incompatible Node.js environments is known to cause problems (potentially breaking down the development environment), so it's better be safe than sorry.

    ```sh
    npm update -g
  8. d2s revised this gist Dec 15, 2022. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -91,6 +91,8 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - `nvm uninstall v18.8.0`
    - `nvm uninstall v14.20.0`
    ---
    ### Updating outdated packages
    > _Warning:_ Make sure you have latest `nvm` version installed, just in case. Update instructions of it in the beginning of this article. [nvm `v0.39.2`](https://github.com/nvm-sh/nvm/releases/tag/v0.39.2) version of fixes potential problems that might cause older node environments to break if accidentally installing `npm v9` to those.
    @@ -109,10 +111,14 @@ npm outdated -g --depth=0.
    #### Updating all globally installed npm packages
    > _Warning:_ This might be too risky approach. Instead, it is better to update packages individually, as that avoids the risk of accidentally updating `npm` package to incompatible versions. `npm v9` installation to older incompatible Node.js environments is known to cause problems (potentially breaking down the development environment), so it's better be safe than sorry.

    ```sh
    npm update -g
    ```

    ---

    #### CLI aliases for Bash & Zsh environments

    Example configuration for your Bash & Zsh command line environments.
    @@ -144,6 +150,7 @@ cd PROJECT_NAME
    npm rebuild
    ```

    ---

    ## Notes about this documentation

  9. d2s revised this gist Dec 15, 2022. 1 changed file with 25 additions and 20 deletions.
    45 changes: 25 additions & 20 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -8,10 +8,10 @@ A quick guide on how to setup Node.js development environment.
    [nvm](https://github.com/nvm-sh/nvm) allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer. (If you already had it, remember to update to more recent versions.)
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
    @@ -46,17 +46,19 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.17.0`
    - `nvm install v18.12.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v18.8.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.20.0`
    - `nvm install v19.3.0`
    4. Install previous LTS releases of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v16.19.0`
    - `nvm install v14.21.2`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.17.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.17.0) (for production quality applications)
    - `nvm alias default v18.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#18.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.20.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.20.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v18.12.1` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.12.1) (for _production quality_ applications)
    - `nvm alias default v19.3.0` [changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V19.md#19.3.0) (if you use Node.js features from the _Current_ release)
    - `nvm alias default v16.19.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.19.0) (if you need to use old version of Node.js for _older_ projects)
    - `nvm alias default v14.21.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.21.2) (if you need to use old version of Node.js for _even older_ projects)

    You can select Node.js version by running `nvm use v18.3.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v18.12.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -71,25 +73,28 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.17.0`
    - `nvm use v18.8.0`
    - `nvm install v14.20.0`
    - `nvm use v19.3.0`
    - `nvm use v18.12.1`
    - `nvm use v16.19.0`
    - `nvm use v14.21.2`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v16.15.1`
    - `nvm reinstall-packages v18.3.0`
    - `nvm reinstall-packages v14.19.2`
    - `nvm reinstall-packages v18.8.0`
    - `nvm reinstall-packages v16.17.0`
    - `nvm reinstall-packages v14.20.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v16.15.1`
    - `nvm uninstall v18.3.0`
    - `nvm uninstall v14.19.2`
    - `nvm uninstall v16.17.0`
    - `nvm uninstall v18.8.0`
    - `nvm uninstall v14.20.0`
    ### Updating outdated packages
    > _Warning:_ Make sure you have latest `nvm` version installed, just in case. Update instructions of it in the beginning of this article. [nvm `v0.39.2`](https://github.com/nvm-sh/nvm/releases/tag/v0.39.2) version of fixes potential problems that might cause older node environments to break if accidentally installing `npm v9` to those.
    #### List of globally installed top level packages
    ```sh
  10. d2s revised this gist Nov 9, 2022. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -148,9 +148,6 @@ npm rebuild
    - [Debian 10](https://www.debian.org/News/2019/20190706)
    - [Ubuntu on WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)
    - [Ubuntu 18.04 LTS](http://releases.ubuntu.com/bionic/)
    - [Ubuntu 17.04](http://releases.ubuntu.com/xenial/)
    - [Ubuntu 16.04 LTS](http://releases.ubuntu.com/xenial/)
    - [Ubuntu 14.04.3 LTS](http://releases.ubuntu.com/trusty/)
    ## Contributions
  11. d2s revised this gist Nov 9, 2022. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -151,11 +151,6 @@ npm rebuild
    - [Ubuntu 17.04](http://releases.ubuntu.com/xenial/)
    - [Ubuntu 16.04 LTS](http://releases.ubuntu.com/xenial/)
    - [Ubuntu 14.04.3 LTS](http://releases.ubuntu.com/trusty/)
    - [macOS 10.14.6 (Mojave)](https://apple.wikia.com/wiki/MacOS_10.14.6)
    - [macOS 10.13.6 (High Sierra)](https://apple.wikia.com/wiki/MacOS_10.13.6)
    - [macOS 10.12.6 (Sierra)](https://apple.wikia.com/wiki/MacOS_10.12.6)
    - [OS X 10.11.6 (El Capitan)](https://apple.wikia.com/wiki/OS_X_10.11.6)
    ## Contributions
  12. d2s revised this gist Aug 31, 2022. 1 changed file with 15 additions and 13 deletions.
    28 changes: 15 additions & 13 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,15 +46,15 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.15.1`
    - `nvm install v16.17.0`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v18.3.0`
    - `nvm install v18.8.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.19.2`
    - `nvm install v14.20.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.15.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.15.1) (for production quality applications)
    - `nvm alias default v18.3.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#18.3.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.2) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v16.17.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.17.0) (for production quality applications)
    - `nvm alias default v18.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#18.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.20.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.20.0) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v18.3.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -71,20 +71,22 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.15.1`
    - `nvm use v18.3.0`
    - `nvm use v14.19.2`
    - `nvm use v16.17.0`
    - `nvm use v18.8.0`
    - `nvm install v14.20.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v16.14.2`
    - `nvm reinstall-packages v14.19.1`
    - `nvm reinstall-packages v16.15.1`
    - `nvm reinstall-packages v18.3.0`
    - `nvm reinstall-packages v14.19.2`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v16.14.2`
    - `nvm uninstall v14.19.1`
    - `nvm uninstall v16.15.1`
    - `nvm uninstall v18.3.0`
    - `nvm uninstall v14.19.2`
    ### Updating outdated packages
  13. d2s revised this gist Jun 6, 2022. 1 changed file with 14 additions and 16 deletions.
    30 changes: 14 additions & 16 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,17 +46,17 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.14.2`
    - `nvm install v16.15.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v17.8.0`
    - `nvm install v18.3.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.19.1`
    - `nvm install v14.19.2`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.14.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.2) (for production quality applications)
    - `nvm alias default v17.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.1) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v16.15.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.15.1) (for production quality applications)
    - `nvm alias default v18.3.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#18.3.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.2) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v16.14.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v18.3.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -71,22 +71,20 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.14.2`
    - `nvm use v17.8.0`
    - `nvm use v14.19.1`
    - `nvm use v16.15.1`
    - `nvm use v18.3.0`
    - `nvm use v14.19.2`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v16.14.0`
    - `nvm reinstall-packages v17.5.0`
    - `nvm reinstall-packages v14.19.0`
    - `nvm reinstall-packages v16.14.2`
    - `nvm reinstall-packages v14.19.1`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v16.14.0`
    - `nvm uninstall v17.5.0`
    - `nvm uninstall v14.19.0`
    - `nvm uninstall v16.14.2`
    - `nvm uninstall v14.19.1`
    ### Updating outdated packages
  14. d2s revised this gist Mar 24, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -48,7 +48,7 @@ A quick guide on how to setup Node.js development environment.
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.14.2`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v17.8.1`
    - `nvm install v17.8.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.19.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    @@ -72,7 +72,7 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.14.2`
    - `nvm use v17.8.1`
    - `nvm use v17.8.0`
    - `nvm use v14.19.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v16.14.0`
  15. d2s revised this gist Mar 24, 2022. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -48,9 +48,9 @@ A quick guide on how to setup Node.js development environment.
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.14.2`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v17.5.0`
    - `nvm install v17.8.1`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.19.0`
    - `nvm install v14.19.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.14.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.2) (for production quality applications)
    - `nvm alias default v17.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.8.0) (if you use Node.js features from the Current release)
    @@ -71,7 +71,7 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.14.0`
    - `nvm use v16.14.2`
    - `nvm use v17.8.1`
    - `nvm use v14.19.1`
    - Linking global packages from previous version:
  16. d2s revised this gist Mar 24, 2022. 1 changed file with 11 additions and 8 deletions.
    19 changes: 11 additions & 8 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,15 +46,15 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v16.14.0`
    - `nvm install v16.14.2`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v17.5.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.19.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.0) (for production quality applications)
    - `nvm alias default v17.5.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.5.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v16.14.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.2) (for production quality applications)
    - `nvm alias default v17.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.1) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v16.14.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -72,18 +72,21 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.14.0`
    - `nvm use v17.5.0`
    - `nvm use v14.19.0`
    - `nvm use v17.8.1`
    - `nvm use v14.19.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v14.17.0`
    - `nvm reinstall-packages v16.14.0`
    - `nvm reinstall-packages v17.5.0`
    - `nvm reinstall-packages v14.19.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v14.17.0`
    - `nvm uninstall v16.14.0`
    - `nvm uninstall v17.5.0`
    - `nvm uninstall v14.19.0`
    ### Updating outdated packages
  17. d2s revised this gist Feb 14, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ A quick guide on how to setup Node.js development environment.
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v17.5.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.17.0`
    - `nvm install v14.19.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.0) (for production quality applications)
    - `nvm alias default v17.5.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.5.0) (if you use Node.js features from the Current release)
    @@ -76,13 +76,13 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - `nvm use v14.19.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v14.17.0`
    - `nvm reinstall-packages v16.14.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v14.14`
    - `nvm uninstall v14.17.0`
    ### Updating outdated packages
  18. d2s revised this gist Feb 14, 2022. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -141,6 +141,7 @@ npm rebuild
    [@d2s](https://github.com/d2s "GitHub profile of Daniel Schildt") tested older versions of these install instructions with:
    - [Debian 11.2](https://www.debian.org/News/2021/20211218)
    - [Debian 10](https://www.debian.org/News/2019/20190706)
    - [Ubuntu on WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)
    - [Ubuntu 18.04 LTS](http://releases.ubuntu.com/bionic/)
  19. d2s revised this gist Feb 14, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -52,8 +52,8 @@ A quick guide on how to setup Node.js development environment.
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v14.17.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v16.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#16.14.0) (for production quality applications)
    - `nvm alias default v17.5.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#17.5.0) (if you use Node.js features from the Current release)
    - `nvm alias default v16.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.14.0) (for production quality applications)
    - `nvm alias default v17.5.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V17.md#17.5.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.0) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v16.14.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
  20. d2s revised this gist Feb 14, 2022. 1 changed file with 13 additions and 20 deletions.
    33 changes: 13 additions & 20 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,18 +46,17 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v14.17.0`
    - `nvm install v16.14.0`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v16.2.0`
    - `nvm install v17.5.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v12.22.1`
    - `nvm install v10.24.1`
    - `nvm install v14.17.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v14.17.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.17.0) (for production quality applications)
    - `nvm alias default v16.2.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.2.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.22.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.22.1) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v16.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#16.14.0) (for production quality applications)
    - `nvm alias default v17.5.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#17.5.0) (if you use Node.js features from the Current release)
    - `nvm alias default v14.19.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.19.0) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v14.17.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v16.14.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -72,25 +71,19 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.2.0`
    - `nvm use v14.17.0`
    - `nvm use v12.22.1`
    - `nvm use v10.24.1`
    - `nvm use v16.14.0`
    - `nvm use v17.5.0`
    - `nvm use v14.19.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v15.14.0`
    - `nvm reinstall-packages v14.16.1`
    - `nvm reinstall-packages v12.21.0`
    - `nvm reinstall-packages v10.24.0`
    - `nvm reinstall-packages v14.17.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v15.14.0`
    - `nvm uninstall v14.16.1`
    - `nvm uninstall v12.21.0`
    - `nvm uninstall v10.24.0`
    - `nvm uninstall v14.14`
    - `nvm uninstall v14.17.0`
    ### Updating outdated packages
  21. d2s revised this gist Feb 14, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
  22. d2s revised this gist May 23, 2021. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,18 +46,18 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v14.16.1`
    - `nvm install v14.17.0`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v16.2.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v12.22.1`
    - `nvm install v10.24.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v14.16.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.16.1) (for production quality applications)
    - `nvm alias default v14.17.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.17.0) (for production quality applications)
    - `nvm alias default v16.2.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.2.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.22.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.22.1) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v14.16.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v14.17.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -73,12 +73,12 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v16.2.0`
    - `nvm use v14.16.1`
    - `nvm use v14.17.0`
    - `nvm use v12.22.1`
    - `nvm use v10.24.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v15.14.0`
    - `nvm reinstall-packages v14.16.0`
    - `nvm reinstall-packages v14.16.1`
    - `nvm reinstall-packages v12.21.0`
    - `nvm reinstall-packages v10.24.0`

    @@ -88,7 +88,7 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v15.14.0`
    - `nvm uninstall v14.16.0`
    - `nvm uninstall v14.16.1`
    - `nvm uninstall v12.21.0`
    - `nvm uninstall v10.24.0`
  23. d2s revised this gist May 23, 2021. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -48,13 +48,13 @@ A quick guide on how to setup Node.js development environment.
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v14.16.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v15.14.0`
    - `nvm install v16.2.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v12.22.1`
    - `nvm install v10.24.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v14.16.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.16.1) (for production quality applications)
    - `nvm alias default v15.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.14.0) (if you use Node.js features from the Current release)
    - `nvm alias default v16.2.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#16.2.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.22.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.22.1) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v14.16.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    @@ -72,12 +72,12 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v15.14.0`
    - `nvm use v16.2.0`
    - `nvm use v14.16.1`
    - `nvm use v12.22.1`
    - `nvm use v10.24.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v15.10.0`
    - `nvm reinstall-packages v15.14.0`
    - `nvm reinstall-packages v14.16.0`
    - `nvm reinstall-packages v12.21.0`
    - `nvm reinstall-packages v10.24.0`
    @@ -87,7 +87,7 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v15.10.0`
    - `nvm uninstall v15.14.0`
    - `nvm uninstall v14.16.0`
    - `nvm uninstall v12.21.0`
    - `nvm uninstall v10.24.0`
  24. d2s revised this gist Apr 7, 2021. 1 changed file with 20 additions and 21 deletions.
    41 changes: 20 additions & 21 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,19 +46,18 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v14.16.0`
    - `nvm install v14.16.1`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v15.10.0`
    - `nvm install v15.14.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v12.21.0`
    - `nvm install v10.24.0`
    - `nvm install v12.22.1`
    - `nvm install v10.24.1`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v14.16.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.16.0) (for production quality applications)
    - `nvm alias default v15.10.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.10.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.21.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.21.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v10.24.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.24.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v14.16.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.16.1) (for production quality applications)
    - `nvm alias default v15.14.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.14.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.22.1` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.22.1) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v12.18.3` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v14.16.1` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -73,25 +72,25 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v15.10.0`
    - `nvm use v14.16.0`
    - `nvm use v12.21.0`
    - `nvm use v10.24.0`
    - `nvm use v15.14.0`
    - `nvm use v14.16.1`
    - `nvm use v12.22.1`
    - `nvm use v10.24.1`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v15.8.0`
    - `nvm reinstall-packages v14.15.5`
    - `nvm reinstall-packages v12.20.2`
    - `nvm reinstall-packages v10.23.3`
    - `nvm reinstall-packages v15.10.0`
    - `nvm reinstall-packages v14.16.0`
    - `nvm reinstall-packages v12.21.0`
    - `nvm reinstall-packages v10.24.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v15.8.0`
    - `nvm uninstall v14.15.5`
    - `nvm uninstall v12.20.2`
    - `nvm uninstall v10.23.3`
    - `nvm uninstall v15.10.0`
    - `nvm uninstall v14.16.0`
    - `nvm uninstall v12.21.0`
    - `nvm uninstall v10.24.0`
    ### Updating outdated packages
  25. d2s revised this gist Apr 7, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
  26. d2s revised this gist Feb 27, 2021. 1 changed file with 20 additions and 18 deletions.
    38 changes: 20 additions & 18 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,17 +46,17 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v14.15.5`
    - `nvm install v14.16.0`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v15.8.0`
    - `nvm install v15.10.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v12.20.2`
    - `nvm install v10.23.3`
    - `nvm install v12.21.0`
    - `nvm install v10.24.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v14.15.5` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.15.5) (for production quality applications)
    - `nvm alias default v15.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.20.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.20.2) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v10.23.3` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.23.3) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v14.16.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.16.0) (for production quality applications)
    - `nvm alias default v15.10.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.10.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.21.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.21.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v10.24.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.24.0) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v12.18.3` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -73,23 +73,25 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v15.8.0`
    - `nvm use v14.15.5`
    - `nvm use v12.20.2`
    - `nvm use v10.23.3`
    - `nvm use v15.10.0`
    - `nvm use v14.16.0`
    - `nvm use v12.21.0`
    - `nvm use v10.24.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v14.8.0`
    - `nvm reinstall-packages v12.18.3`
    - `nvm reinstall-packages v10.22.0`
    - `nvm reinstall-packages v15.8.0`
    - `nvm reinstall-packages v14.15.5`
    - `nvm reinstall-packages v12.20.2`
    - `nvm reinstall-packages v10.23.3`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v14.8.0`
    - `nvm uninstall v12.18.3`
    - `nvm uninstall v10.22.0`
    - `nvm uninstall v15.8.0`
    - `nvm uninstall v14.15.5`
    - `nvm uninstall v12.20.2`
    - `nvm uninstall v10.23.3`
    ### Updating outdated packages
  27. d2s revised this gist Feb 16, 2021. 1 changed file with 20 additions and 19 deletions.
    39 changes: 20 additions & 19 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -10,8 +10,8 @@ A quick guide on how to setup Node.js development environment.
    1. Open new _Terminal_ window.
    2. Run [nvm](https://github.com/nvm-sh/nvm) installer
    - … with _either_ `curl` *or* `wget`, depending on what your computer has available.
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash`
    - `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
    - `wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash`
    - The script clones the nvm repository to `~/.nvm` and adds the source line to your profile (`~/.bash_profile`, `~/.zshrc,` `~/.profile,` or `~/.bashrc`). (You can add the source loading line manually, if the automated install tool does not add it for you.)

    ```sh
    @@ -46,15 +46,17 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v12.18.3`
    - `nvm install v14.15.5`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v14.8.0`
    - `nvm install v15.8.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v10.22.0`
    - `nvm install v12.20.2`
    - `nvm install v10.23.3`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v12.18.3` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.18.3) (for production quality applications)
    - `nvm alias default v14.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v10.22.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.22.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v14.15.5` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.15.5) (for production quality applications)
    - `nvm alias default v15.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V15.md#15.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v12.20.2` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.20.2) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v10.23.3` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.23.3) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v12.18.3` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    @@ -71,24 +73,23 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v12.18.3`
    - `nvm use v14.8.0`
    - `nvm use v10.22.0`
    - `nvm use v15.8.0`
    - `nvm use v14.15.5`
    - `nvm use v12.20.2`
    - `nvm use v10.23.3`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v12.18.0`
    - `nvm reinstall-packages v13.14.0`
    - `nvm reinstall-packages v14.4.0`
    - `nvm reinstall-packages v10.21.0`
    - `nvm reinstall-packages v14.8.0`
    - `nvm reinstall-packages v12.18.3`
    - `nvm reinstall-packages v10.22.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v12.18.0`
    - `nvm uninstall v13.14.0`
    - `nvm uninstall v14.4.0`
    - `nvm uninstall v10.21.0`
    - `nvm uninstall v14.8.0`
    - `nvm uninstall v12.18.3`
    - `nvm uninstall v10.22.0`
    ### Updating outdated packages
  28. d2s revised this gist Aug 22, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -73,7 +73,7 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    For example:
    - `nvm use v12.18.3`
    - `nvm use v14.8.0`
    - `nvm use v10.21.0`
    - `nvm use v10.22.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v12.18.0`
    - `nvm reinstall-packages v13.14.0`
  29. d2s revised this gist Aug 22, 2020. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -46,17 +46,17 @@ A quick guide on how to setup Node.js development environment.
    1. List installed Node.js versions with:
    - `nvm ls`
    2. **Install latest LTS Version of [Node.js](https://nodejs.org/en/)** (for production quality applications)
    - `nvm install v12.18.0`
    - `nvm install v12.18.3`
    3. Install latest [Node.js](https://nodejs.org/en/) Current release (for testing new feature improvements)
    - `nvm install v14.4.0`
    - `nvm install v14.8.0`
    4. Install previous LTS release of [Node.js](https://nodejs.org/en/) LTS release (if you need to run older applications)
    - `nvm install v10.21.0`
    - `nvm install v10.22.0`
    5. If you want to change the default Node version later, you can run a command to adjust it.
    - `nvm alias default v12.18.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.18.0) (for production quality applications)
    - `nvm alias default v14.4.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.4.0) (if you use Node.js features from the Current release)
    - `nvm alias default v10.21.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.21.0) (if you need to use old version of Node.js for older projects)
    - `nvm alias default v12.18.3` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.18.3) (for production quality applications)
    - `nvm alias default v14.8.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#14.8.0) (if you use Node.js features from the Current release)
    - `nvm alias default v10.22.0` [changelog](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.22.0) (if you need to use old version of Node.js for older projects)

    You can select Node.js version by running `nvm use v12.18.0` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.
    You can select Node.js version by running `nvm use v12.18.3` (or another version number). Another alternative: create a small Bash shell script to enable the right environment variables for your project.

    Read the Node.js [Long Term Support (LTS) schedule](https://nodejs.org/en/about/releases/ "Releases | Node.js") to have more understanding of their release roadmap. List of all [previous releases](https://nodejs.org/en/download/releases/ "Previous Releases | Node.js") is also useful for finding details about Node.js release history.

    @@ -71,24 +71,24 @@ If you already have existing Node.js version via `nvm`, you can migrate older pa
    - Open new Terminal window (to make sure you have latest Node.js version active in your command line environment).
    - Before running next commands, remember to switch to the right version of Node with `nvm use` command.
    For example:
    - `nvm use v12.18.0`
    - `nvm use v14.4.0`
    - `nvm use v12.18.3`
    - `nvm use v14.8.0`
    - `nvm use v10.21.0`
    - Linking global packages from previous version:
    - `nvm reinstall-packages v12.17.0`
    - `nvm reinstall-packages v12.18.0`
    - `nvm reinstall-packages v13.14.0`
    - `nvm reinstall-packages v14.3.0`
    - `nvm reinstall-packages v10.20.1`
    - `nvm reinstall-packages v14.4.0`
    - `nvm reinstall-packages v10.21.0`

    ### Deleting old Node.js versions

    - Check installed Node.js versions with:
    - `nvm ls`
    - Delete an older version (if you don't use it in some of your projects):
    - `nvm uninstall v12.17.0`
    - `nvm uninstall v12.18.0`
    - `nvm uninstall v13.14.0`
    - `nvm uninstall v14.2.0`
    - `nvm uninstall v10.20.1`
    - `nvm uninstall v14.4.0`
    - `nvm uninstall v10.21.0`
    ### Updating outdated packages
    @@ -160,4 +160,4 @@ npm rebuild
    ## Contributions
    If you have improvement suggestions to make these instructions simpler & better, post a comment under the [original Gist by @d2s](https://gist.github.com/d2s/372b5943bce17b964a79 "Installing Node.js to Linux & macOS & WSL with nvm") with your documentation improvement suggestions. If you are reading a forked version of the document, check the original Gist for a more recent instructions.
    If you have improvement suggestions to make these instructions simpler & better, post a comment under the [original Gist by @d2s](https://gist.github.com/d2s/372b5943bce17b964a79 "Installing Node.js to Linux & macOS & WSL with nvm") with your documentation improvement suggestions. If you are reading a forked version of the document, check the original Gist for a more recent instructions.
  30. d2s revised this gist Jun 11, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installing-node-with-nvm.md
    Original file line number Diff line number Diff line change
    @@ -160,4 +160,4 @@ npm rebuild
    ## Contributions
    If you have improvement suggestions to make these instructions simpler & better, post a comment under the [original Gist by @d2s](https://gist.github.com/d2s/372b5943bce17b964a79 "Installing Node.js to Linux & macOS & WSL with nvm") with your documentation improvement suggestions. If reading a forked version of the document, check the original Gist for a more recent instructions.
    If you have improvement suggestions to make these instructions simpler & better, post a comment under the [original Gist by @d2s](https://gist.github.com/d2s/372b5943bce17b964a79 "Installing Node.js to Linux & macOS & WSL with nvm") with your documentation improvement suggestions. If you are reading a forked version of the document, check the original Gist for a more recent instructions.