NodeSource Node.js Binary Distributions
This repository contains the instructions to install the NodeSource Node.js Binary Distributions via .rpm and .deb as well as their setup and support scripts.
If you're looking for NodeSource's low-impact Node.js performance monitoring platform, please get started 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 |
---|---|---|---|
Ubuntu Bionic ^18.04 | ❌ | ❌ | ❌ |
Ubuntu Focal ^20.04 | ✅ | ✅ | ✅ |
Ubuntu Jammy ^22.04 | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x |
---|---|---|---|
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 take a look to Node.js Unofficial Builds
Node.js v21.x:
curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_21.x | bash - &&\
apt-get install -y nodejs
Node.js v20.x:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&\
apt-get install -y nodejs
Node.js v18.x:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - &&\
apt-get install -y nodejs
Node.js LTS (v20.x):
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - &&\
apt-get install -y nodejs
Node.js Current (v21.x):
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
curl -fsSL https://deb.nodesource.com/setup_current.x | bash - &&\
apt-get install -y nodejs
nodejs
Ubuntu & Debian packagesTo completely remove Node.js installed from the deb.nodesource.com package methods above:
sudo
on Ubuntu or run this as root on debianapt-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 |
---|---|---|---|
Fedora >= 20 (20->28) | ❌ | ❌ | ❌ |
Fedora >= 29 | ✅ | ✅ | ✅ |
Fedora >= 36 | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x |
---|---|---|---|
Redhat 7 | ❌ | ❌ | ❌ |
Redhat 8 | ✅ | ✅ | ✅ |
Redhat 9 | ✅ | ✅ | ✅ |
Redhat 9-minimal | ✅ | ✅ | ✅ |
Distro Name | Node 18x | Node 20x | Node 21x |
---|---|---|---|
Amazon Linux 2 | ❌ | ❌ | ❌ |
Amazon Linux 2023 | ✅ | ✅ | ✅ |
NOTE: If you are looking to run Node.js in a non-supported Linux version take a look to Node.js Unofficial Builds
The Nodesource RPM package signing key is available here: https://rpm.nodesource.com/gpgkey/nodesource.gpg.key
Node.js v21.x
curl -fsSL https://rpm.nodesource.com/setup_21.x | bash -
yum install -y nodejs
curl -fsSL https://rpm.nodesource.com/setup_21.x | sudo bash -
yum install -y nodejs
Node.js v20.x
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
yum install -y nodejs
curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
yum install -y nodejs
Node.js v18.x
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
yum install -y nodejs
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
yum install -y nodejs
Node.js LTS (20.x)
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash -
yum install -y nodejs
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
yum install -y nodejs
Node.js Current (21.x)
curl -fsSL https://rpm.nodesource.com/setup_current.x | bash -
yum install -y nodejs
curl -fsSL https://rpm.nodesource.com/setup_current.x | sudo bash -
yum install -y nodejs
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'
nodejs
Enterprise Linux packagesTo completely remove Node.js installed from the rpm.nodesource.com package methods above:
sudo
or run this as rootyum 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, 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:
Adrian Estrada | GitHub/edsadr | Twitter/@edsadr |
---|---|---|
Jesus Paz | GitHub/JesusPaz | |
Jefferson Rios | GitHub/riosje |
Chris Lea | GitHub/chrislea | Twitter/@chrislea |
---|---|---|
Rod Vagg | GitHub/rvagg | Twitter/@rvagg |
William Blankenship | GitHub/retrohacker | Twitter/@retrohack3r |
Harry Truong | GitHub/harrytruong | |
Matteo Brunati | GitHub/mattbrun | |
Brian White | GitHub/mscdex | |
Matt Lewandowsky | GitHub/lewellyn | |
Jan-Hendrik Peters | GitHub/hennr | |
Andris Reinman | GitHub/andris9 | |
Carvilsi | GitHub/carvilsi | |
Krasimir Trenchev | GitHub/Ava7 | |
Phil Helm | GitHub/phelma | |
0xmohit | GitHub/0xmohit | |
jdarling | GitHub/jdarling | |
Prayag Verma | GitHub/pra85 | |
Misha Brukman | GitHub/mbrukman | |
Simon Lydell | GitHub/lydell | |
Sebastian Blei | GitHub/iamsebastian | |
Jorge Maldonado Ventura | NotABug/jorgesumle | |
Mayank Metha | GitHub/mayankmetha | Twitter/@mayankmethad |
Iván Iguarán | GitHub/igsu |
Contributions are welcomed from anyone wanting to improve this project!
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