How to Install Latest Node.js 22 on Ubuntu 26.10 with PPA

Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to build fast, scalable network applications. The NodeSource repository provides packages for installing Node.js on Ubuntu.

Add NodeSource Repository

First, install the required packages on your Ubuntu system:

apt update
apt install curl ca-certificates gnupg -y

Add the NodeSource repository for Node.js 22 by running the following command:

curl -fsSL https://deb.nodesource.com/setup_22.x | bash -

Output:

root@vps:~# curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
...
Repository configured successfully.
To install Node.js, run: apt install nodejs -y

Install Node.js

Now, install Node.js by running:

apt install nodejs -y

Output:

root@vps:~# apt install nodejs -y
Installing:
  nodejs

Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0
  Download size: 37.8 MB
  Space needed: 236 MB / 93.6 GB available

Get:1 https://deb.nodesource.com/node_22.x nodistro/main amd64 nodejs amd64 22.23.3-1nodesource1 [37.8 MB]
Fetched 37.8 MB in 1s (30.8 MB/s)
Selecting previously unselected package nodejs.
(Reading database… 104731 files and directories currently installed.)
Preparing to unpack …/nodejs_22.23.3-1nodesource1_amd64.deb…
Unpacking nodejs (22.23.3-1nodesource1)…
Setting up nodejs (22.23.3-1nodesource1)…
Processing triggers for man-db (2.13.1-1build1)…
Scanning processes...

Verify Node.js Version

After installation, verify the installed Node.js version:

node -v

Output:

root@vps:~# node -v
v22.23.3

You have successfully installed Node.js 22 on Ubuntu 26.10.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS