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.
We'd like to inform you of important changes to our distribution repository nodesource/distributions.
What's New:
nodistro
codename. We no longer package the installer coupled to specific versions. This means you can install Node.js on almost any distro that meets the minimum requirements.Looking for the previous Documentation README.md
NodeSource will continue to maintain the following architectures and may add additional ones in the future.
Distro Name | Node 18x | Node 20x | Node 21x | Node 22x | Node 23x |
---|---|---|---|---|---|
Ubuntu Bionic ^18.04 | |||||
Ubuntu Focal ^20.04 | ✅ | ✅ | ✅ | ✅ | ✅ |
Ubuntu Jammy ^22.04 | ✅ | ✅ | ✅ | ✅ | ✅ |
Ubuntu Noble ^24.04 | ✅ | ✅ | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x | Node 22x | Node 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.
Node.js 23.x:
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
Node.js v22.x:
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
Node.js v20.x:
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
Node.js v18.x:
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
Node.js LTS (v22.x):
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_lts.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
apt-get install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
Node.js Current (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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
Run the setup script with sudo:
sudo -E bash nodesource_setup.sh
Install Node.js:
sudo apt-get install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
Run the setup script with sudo:
bash nodesource_setup.sh
Install Node.js:
apt-get install -y nodejs
Verify the installation:
node -v
nsolid
or nodejs
Ubuntu & Debian packagesTo completely remove Node.js or N|solid installed from the deb.nodesource.com package methods above:
sudo
on Ubuntu or run this as root on debianapt-get purge nsolid &&
rm -r /etc/apt/sources.list.d/nodesource.list &&
rm -r /etc/apt/keyrings/nodesource.gpg
apt-get purge nodejs &&
rm -r /etc/apt/sources.list.d/nodesource.list &&
rm -r /etc/apt/keyrings/nodesource.gpg
NodeSource will continue to maintain the following architectures and may add additional ones in the future.
Distro Name | Node 18x | Node 20x | Node 21x | Node 22x | Node 23x |
---|---|---|---|---|---|
Fedora >= 20 (20->28) | |||||
Fedora >= 29 | ✅ | ✅ | ✅ | ✅ | ✅ |
Fedora >= 36 | ✅ | ✅ | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x | Node 22x | Node 23x |
---|---|---|---|---|---|
Redhat 7 | |||||
Redhat 8 | ✅ | ✅ | ✅ | ✅ | ✅ |
Redhat 9 | ✅ | ✅ | ✅ | ✅ | ✅ |
Redhat 9-minimal | ✅ | ✅ | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x | Node 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.
Node.js v23.x
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_23.x -o nodesource_setup.sh
Run the setup script as root:
sudo bash nodesource_setup.sh
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_23.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install Node.js:
yum install -y nodejs
Verify the installation:
node -v
Node.js v22.x
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_22.x -o nodesource_setup.sh
Run the setup script as root:
sudo bash nodesource_setup.sh
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_22.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install Node.js:
yum install -y nodejs
Verify the installation:
node -v
Node.js v20.x
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_20.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_20.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
Node.js v18.x
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_18.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_18.x -o nodesource_setup.sh
Run the setup script as root:
sudo bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
N|Solid or Node.js LTS (22.x)
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_lts.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_lts.x -o nodesource_setup.sh
Run the setup script as root:
sudo bash nodesource_setup.sh
Install N|Solid or Node.js:
Install N|Solid:
sudo yum install -y nsolid
Verify the installation:
nsolid -v
Install Node.js:
sudo yum install -y nodejs
Verify the installation:
node -v
Node.js Current (23.x)
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_current.x -o nodesource_setup.sh
Run the setup script as root:
bash nodesource_setup.sh
Install Node.js:
yum install -y nodejs
Verify the installation:
node -v
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
Download the setup script:
curl -fsSL https://rpm.nodesource.com/setup_current.x -o nodesource_setup.sh
Run the setup script as root:
sudo bash nodesource_setup.sh
Install Node.js:
sudo yum install -y nodejs
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'
nsolid
or nodejs
Enterprise Linux packagesTo completely remove Node.js installed from the rpm.nodesource.com package methods above:
sudo
or run this as rootyum remove nsolid &&
rm -r /etc/yum.repos.d/nodesource*.repo &&
yum clean all
yum remove nodejs &&
rm -r /etc/yum.repos.d/nodesource*.repo &&
yum clean all
source: https://nodejs.dev
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,