Table of Contents

Debian and Ubuntu based distributions

Available architectures

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

  • amd64 (64-bit)
  • armhf (ARM 32-bit hard-float, ARMv7 and up: arm-linux-gnueabihf)
  • arm64 (ARM 64-bit, ARMv8 and up: aarch64-linux-gnu)

Supported Versions

Ubuntu versions

Distro Name Node 16x Node 18x Node 20x Node 21x
Ubuntu Bionic ^18.04
Ubuntu Focal ^20.04
Ubuntu Jammy ^22.04

Debian versions

Distro Name Node 16x Node 18x Node 20x Node 21x
Debian 8 Jessie
Debian 9 Stretch
Debian 10 Buster
Debian 11 Bullseye
Debian 12 Bookworm

Installation Instructions


If you have root access, you can omit the 'sudo' command as you already have full administrative privileges.

  1. Download and import the Nodesource GPG key
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
  1. Create deb repository
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg]$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

Optional: NODE_MAJOR can be changed depending on the version you need.

  1. Run Update and Install
sudo apt-get update
sudo apt-get install nodejs -y

Uninstall nodejs Ubuntu & Debian packages

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

use sudo on Ubuntu or run this as root on Debian

apt-get purge nodejs &&\
rm -r /etc/apt/sources.list.d/nodesource.list &&\
rm -r /etc/apt/keyrings/nodesource.gpg

Installing Node.js via package manager | Node.js
Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine.

For other platform you can follow Official Link

Great! You’ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to BugFix.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.