Home

Awesome

NodeSource N|Solid & Node.js Binary Distributions

NodeSource

CircleCI

Github Actions Test

This repository contains the instructions to install the NodeSource N|solid and Node.js Binary Distributions via .rpm and .deb as well as their setup and support scripts.

If you're looking for more information on NodeSource's low-impact Node.js performance monitoring platform, Learn more here.

New Update ⚠️

We'd like to inform you of important changes to our distribution repository nodesource/distributions.

What's New:

Looking for the previous Documentation README.md

Table of Contents

Debian and Ubuntu based distributions

DEB Available architectures

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

DEB Supported Versions

Ubuntu versions

Distro NameNode 18xNode 20xNode 21xNode 22xNode 23x
Ubuntu Bionic ^18.04
Ubuntu Focal ^20.04
Ubuntu Jammy ^22.04
Ubuntu Noble ^24.04

Debian versions

Distro NameNode 18xNode 20xNode 21xNode 22xNode 23x
Debian 8 Jessie
Debian 9 Stretch
Debian 10 Buster
Debian 11 Bullseye
Debian 12 Bookworm

[!NOTE] If you are looking to run Node.js in a non-supported Linux version contact NodeSource to get enterprise support for your specific needs.

Installation Instructions (DEB)

Node.js 23.x:

Using Ubuntu (Node.js 23)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install Node.js:

    sudo apt-get install -y nodejs
    
  4. Verify the installation:

    node -v
    
Using Debian, as root (Node.js 23)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install Node.js:

    apt-get install -y nodejs
    
  4. Verify the installation:

    node -v
    

Node.js v22.x:

Using Ubuntu (Node.js 22)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
Using Debian, as root (Node.js 22)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js v20.x:

Using Ubuntu (Node.js 20)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
Using Debian, as root (Node.js 20)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js v18.x:

Using Ubuntu (Node.js 18)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
Using Debian, as root (Node.js 18)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js LTS (v22.x):

Using Ubuntu (Node.js LTS)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
Using Debian, as root (N|Solid or Node.js LTS)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    apt-get install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    apt-get install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js Current (23):

Using Ubuntu (Node.js Current)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    sudo -E bash nodesource_setup.sh
    
  3. Install Node.js:

    sudo apt-get install -y nodejs
    
  4. Verify the installation:

    node -v
    
Using Debian, as root (Node.js Current)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

apt-get install -y curl
  1. Download the setup script:

    curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
    
  2. Run the setup script with sudo:

    bash nodesource_setup.sh
    
  3. Install Node.js:

    apt-get install -y nodejs
    
  4. Verify the installation:

    node -v
    

Uninstall nsolid or nodejs Ubuntu & Debian packages

To completely remove Node.js or N|solid installed from the deb.nodesource.com package methods above:

use sudo on Ubuntu or run this as root on debian

<details> <summary><b>N|Solid</b></summary>
apt-get purge nsolid &&\
rm -r /etc/apt/sources.list.d/nodesource.list &&\
rm -r /etc/apt/keyrings/nodesource.gpg
</details> <details> <summary><b>Node.js</b></summary>
apt-get purge nodejs &&\
rm -r /etc/apt/sources.list.d/nodesource.list &&\
rm -r /etc/apt/keyrings/nodesource.gpg
</details>

Enterprise Linux Based Distributions

RPM Available architectures

NodeSource will continue to maintain the following architectures and may add additional ones in the future.

RPM Supported Versions

Fedora versions

Distro NameNode 18xNode 20xNode 21xNode 22xNode 23x
Fedora >= 20 (20->28)
Fedora >= 29
Fedora >= 36

Redhat versions

Distro NameNode 18xNode 20xNode 21xNode 22xNode 23x
Redhat 7
Redhat 8
Redhat 9
Redhat 9-minimal

Amazon Linux versions

Distro NameNode 18xNode 20xNode 21xNode 22x
Amazon Linux 2
Amazon Linux 2023

[!NOTE] If you are looking to run Node.js in a non-supported Linux version contact NodeSource to get enterprise support for your specific needs.

RPM Installation Instructions

Installation Instructions (RPM)

Node.js v23.x

Using RPM-based Systems (Node.js 23)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_23.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    sudo bash nodesource_setup.sh
    
  3. Install Node.js:

    sudo yum install -y nodejs
    
  4. Verify the installation:

    node -v
    
No root privileges (Node.js 23)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_23.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install Node.js:

    yum install -y nodejs
    
  4. Verify the installation:

    node -v
    

Node.js v22.x

Using RPM-based Systems (Node.js 22)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_22.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    sudo bash nodesource_setup.sh
    
  3. Install Node.js:

    sudo yum install -y nodejs
    
  4. Verify the installation:

    node -v
    
No root privileges (Node.js 22)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_22.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install Node.js:

    yum install -y nodejs
    
  4. Verify the installation:

    node -v
    

Node.js v20.x

As root (Node.js 20)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_20.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
No root privileges (Node.js 20)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_20.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js v18.x

As root (Node.js 18)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_18.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
No root privileges (Node.js 18)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_18.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    sudo bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

N|Solid or Node.js LTS (22.x)

As root (N|Solid or Node.js LTS)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_lts.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>
No root privileges (N|Solid or Node.js LTS)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_lts.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    sudo bash nodesource_setup.sh
    
  3. Install N|Solid or Node.js:

    <details> <summary><b>N|Solid</b></summary>

    Install N|Solid:

    sudo yum install -y nsolid
    

    Verify the installation:

    nsolid -v
    
    </details> <details> <summary><b>Node.js</b></summary>

    Install Node.js:

    sudo yum install -y nodejs
    

    Verify the installation:

    node -v
    
    </details>

Node.js Current (23.x)

As root (Node.js Current)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_current.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    bash nodesource_setup.sh
    
  3. Install Node.js:

    yum install -y nodejs
    
  4. Verify the installation:

    node -v
    
No root privileges (Node.js Current)

Before you begin, ensure that curl is installed on your system. If curl is not installed, you can install it using the following command:

sudo yum install -y curl
  1. Download the setup script:

    curl -fsSL https://rpm.nodesource.com/setup_current.x -o nodesource_setup.sh
    
  2. Run the setup script as root:

    sudo bash nodesource_setup.sh
    
  3. Install Node.js:

    sudo yum install -y nodejs
    
  4. Verify the installation:

    node -v
    

Optional: install build tools

To compile and install native addons from npm you may also need to install build tools:

yum install gcc-c++ make
# or: yum groupinstall 'Development Tools'

Uninstall nsolid or nodejs Enterprise Linux packages

To completely remove Node.js installed from the rpm.nodesource.com package methods above:

use sudo or run this as root

<details> <summary><b>N|Solid</b></summary>
yum remove nsolid &&\
rm -r /etc/yum.repos.d/nodesource*.repo &&\
yum clean all
</details> <details> <summary><b>Node.js</b></summary>
yum remove nodejs &&\
rm -r /etc/yum.repos.d/nodesource*.repo &&\
yum clean all
</details>

Nodejs Release Calendar

Node Releases Calendar source: https://nodejs.dev

FAQ

Q: Are the scripts deprecated?

A: The scripts are deprecated for the versions of Node.js that are currently outdated. While the packages for these versions still exist, we no longer provide support for them. Our support is exclusively dedicated to the active Node.js versions, which, as of today, are 18, 20, and 21. Users utilizing these versions can confidently use our scripts, but we encourage those using older versions to upgrade for continued support and the best experience.


Q: How can I configure the repository manually?

A: If you prefer to manually configure the repository, we have a detailed guide to assist you through the process. Please visit our Repository Manual Installation Guide for comprehensive instructions. This guide is designed to provide step-by-step directions to ensure a smooth and successful manual setup of the repository for your Node.js environment.


Q: How do I pin to specific versions of Node.js?

A: Please take a look at wiki



Q: Why is there no folder listing available when I visit the following URLs? https://deb.nodesource.com/node_XX.x/pool/main/n/

https://rpm.nodesource.com/pub_20.x/

A: This issue may arise because some users utilize the above URLs to download specific versions of Node.js or create mirrors of our repository.

For more information and possible solutions, please refer to the following resources:


Authors and Contributors

Current Members

<table> <tbody> <tr><th align="left">Adrian Estrada</th><td><a href="https://github.com/edsadr">GitHub/edsadr</a></td><td><a href="https://twitter.com/edsadr">Twitter/@edsadr</a></td></tr> <tr><th align="left">Jesus Paz</th><td><a href="https://github.com/JesusPaz">GitHub/JesusPaz</a></td><td></td></tr> <tr><th align="left">Jefferson Rios</th><td><a href="https://github.com/riosje">GitHub/riosje</a></td><td></td></tr> </tbody> </table>

Past Members

<table> <tbody> <tr><th align="left">Chris Lea</th><td><a href="https://github.com/chrislea">GitHub/chrislea</a></td><td><a href="http://twitter.com/chrislea">Twitter/@chrislea</a></td></tr> <tr><th align="left">Rod Vagg</th><td><a href="https://github.com/rvagg">GitHub/rvagg</a></td><td><a href="http://twitter.com/rvagg">Twitter/@rvagg</a></td></tr> <tr><th align="left">William Blankenship</th><td><a href="https://github.com/retrohacker">GitHub/retrohacker</a></td><td><a href="http://twitter.com/retrohack3r">Twitter/@retrohack3r</a></td></tr> <tr><th align="left">Harry Truong</th><td><a href="https://github.com/harrytruong">GitHub/harrytruong</a></td><td></td></tr> <tr><th align="left">Matteo Brunati</th><td><a href="https://github.com/mattbrun">GitHub/mattbrun</a></td><td></td></tr> <tr><th align="left">Brian White</th><td><a href="https://github.com/mscdex">GitHub/mscdex</a></td><td></td></tr> <tr><th align="left">Matt Lewandowsky</th><td><a href="https://github.com/lewellyn">GitHub/lewellyn</a></td><td></td></tr> <tr><th align="left">Jan-Hendrik Peters</th><td><a href="https://github.com/hennr">GitHub/hennr</a></td><td></td></tr> <tr><th align="left">Andris Reinman</th><td><a href="https://github.com/andris9">GitHub/andris9</a></td><td></td></tr> <tr><th align="left">Carvilsi</th><td><a href="https://github.com/carvilsi">GitHub/carvilsi</a></td><td></td></tr> <tr><th align="left">Krasimir Trenchev</th><td><a href="https://github.com/Ava7">GitHub/Ava7</a></td><td></td></tr> <tr><th align="left">Phil Helm</th><td><a href="https://github.com/phelma">GitHub/phelma</a></td><td></td></tr> <tr><th align="left">0xmohit</th><td><a href="https://github.com/0xmohit">GitHub/0xmohit</a></td><td></td></tr> <tr><th align="left">jdarling</th><td><a href="https://github.com/jdarling">GitHub/jdarling</a></td><td></td></tr> <tr><th align="left">Prayag Verma</th><td><a href="https://github.com/pra85">GitHub/pra85</a></td><td></td></tr> <tr><th align="left">Misha Brukman</th><td><a href="https://github.com/mbrukman">GitHub/mbrukman</a></td><td></td></tr> <tr><th align="left">Simon Lydell</th><td><a href="https://github.com/lydell">GitHub/lydell</a></td><td></td></tr> <tr><th align="left">Sebastian Blei</th><td><a href="https://github.com/iamsebastian">GitHub/iamsebastian</a></td><td></td></tr> <tr><th align="left">Jorge Maldonado Ventura</th><td><a href="https://notabug.org/jorgesumle">NotABug/jorgesumle</a></td><td></td></tr> <tr><th align="left">Mayank Metha</th><td><a href="https://github.com/mayankmetha">GitHub/mayankmetha</a></td><td><a href="https://twitter.com/mayankmethad">Twitter/@mayankmethad</a></td></tr> <tr><th align="left">Iván Iguarán</th><td><a href="https://github.com/igsu">GitHub/igsu</a></td><td></td></tr> </tbody> </table>

Contributions are welcomed from anyone wanting to improve this project!

License

This material is Copyright (c) NodeSource and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.


Supported with love by the NodeSource team

This project is not affiliated with Debian, Ubuntu, Red Hat, CentOS or Fedora.

Ubuntu is a registered trademark of Canonical Ltd.

Debian is a registered trademark owned by Software in the Public Interest, Inc.

Red Hat, CentOS and Fedora are trademarks of Red Hat, Inc.

Amazon Linux is a trademark of Amazon Web Services, Inc.

CloudLinux is a trademark of CloudLinux, Inc