Per the Node.js website:

# Using Debian/Ubuntu
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs            

Then, you will have the latest version of Node.js.

If you're not a fan of curl <url> | bash -, or are using an unsupported distribution, you can try a manual installation.

Answer from jrg on askubuntu.com
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-node-js-on-ubuntu-22-04
How to Install Node.js on Ubuntu (Step-by-Step Guide) | DigitalOcean
May 28, 2025 - In this guide, we will show you four different ways of getting Node.js installed on an Ubuntu server: using apt to install the nodejs package from Ubuntuโ€™s dโ€ฆ
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-node-js-on-ubuntu-20-04
How to Install Node.js on Ubuntu | DigitalOcean
May 2, 2025 - Learn how to install Node.js on Ubuntu using apt, NodeSource, and NVM. Choose the best method for your needs with this beginner-friendly guide
๐ŸŒ
OVHcloud
ovhcloud.com โ€บ tutorials โ€บ how to install node.js on ubuntu 22.04
How to install Node.js on Ubuntu 22.04 ? | OVHcloud Worldwide
In this tutorial, you will learn how to install a Node.js platform on an Ubuntu 22.04 Linux distribution.
๐ŸŒ
BlueVPS
bluevps.com โ€บ blog โ€บ how to install node.js on ubuntu 22.04: step-by-step guide
How to Install Node.js on Ubuntu 22.04: Step-by-Step Guide - Blog - BlueVPS
This method allows you to install Node.js using the official Ubuntu apt repository. Installing Node.js using the apt repository is a simple and easy method, but it will install the older Node.js version on your Ubuntu system.
๐ŸŒ
Node.js
nodejs.org โ€บ en โ€บ download
Node.js โ€” Download Node.jsยฎ
Download a signed Node.js source tarball. Check out our nightly binaries or all previous releases or the unofficial binaries for other platforms. We are able to serve Node.js's downloads and maintain our infrastructure proudly due to the support of these partners, and more.
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ how to install node.js on ubuntu 24.04
Install Node.js on Ubuntu: APT, NVM, or Binary
February 22, 2024 - By following the steps outlined in this tutorial, you should now have Node.js successfully installed on your Ubuntu 24.04 system through one of the three methods: using APT, NVM, or the official Node.js binary. Each method has its advantages, depending on your specific needs and development environment.
๐ŸŒ
IONOS
ionos.ca โ€บ digital guide โ€บ websites โ€บ web development โ€บ install node.js ubuntu 22.04
How to install Node.js on Ubuntu (A step-by-step guide)
December 13, 2024 - Your operating system and the programs required for installing and running Node.js should be up to date. This helps to ensure complications donโ€™t arise when installing Node.js on Ubuntu. You should have an Ubuntu server installed and configured as well as a non-root user set up.
Find elsewhere
๐ŸŒ
BitLaunch
bitlaunch.io โ€บ blog โ€บ how-to-install-node-js-to-ubuntu-20-04
Five ways to install Node.js on Ubuntu 20.04
August 22, 2024 - You should ideally update it before using it in production. ... Refresh your package index with sudo apt update . Run sudo apt install nodejs -y and follow any additional instructions.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ node.js โ€บ installation-of-node-js-on-linux
How to Install Node.js on Linux - GeeksforGeeks
July 12, 2025 - Installing Node.js on a Linux-based operating system can vary slightly depending on your distribution. This guide will walk you through various methods to install Node.js and npm (Node Package Manager) on Linux, whether using Ubuntu, Debian, or other distributions.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ how-to-install-node-js-on-ubuntu
How to Install Node.js on Ubuntu โ€“ Node Linux Installation Guide
October 20, 2023 - If you are a web developer working on the frontend or the backend, you'll want to have Node.js installed on your system. But if you use the typical sudo apt install nodejs command, it may install a very old version of Node which can be troublesome ...
๐ŸŒ
Linuxize
linuxize.com โ€บ post โ€บ how-to-install-node-js-on-ubuntu-20-04
How to Install Node.js and npm on Ubuntu 20.04 | Linuxize
December 24, 2023 - In this tutorial, we will guide you through three different methods of installing Node.js and npm on Ubuntu 20.04.
๐ŸŒ
Hostinger
hostinger.com โ€บ home โ€บ how to install node.js on ubuntu automatically and manually
How to install node.js on Ubuntu automatically and manually
July 22, 2025 - Update your Ubuntuโ€™s repository to ensure you get the latest available version: ... Install Node.js from the local Ubuntu repository using this command.
๐ŸŒ
DigitalOcean
digitalocean.com โ€บ community โ€บ tutorials โ€บ how-to-install-node-js-on-ubuntu-18-04
How To Install Node.js on Ubuntu 18.04 | DigitalOcean
December 29, 2021 - To install a more recent version of Node.js you can add the PPA (personal package archive) maintained by NodeSource. This will have more up-to-date versions of Node.js than the official Ubuntu repositories and will allow you to choose between several available versions of the platform.
๐ŸŒ
Node.js
nodejs.org โ€บ en โ€บ download โ€บ package-manager โ€บ all
Node.js โ€” Installing Node.js via package manager
To install fnm, use this install script. fnm has cross-platform support (macOS, Windows, Linux) & all popular shells (Bash, Zsh, Fish, PowerShell, Windows Command Line Prompt). fnm is built with speed in mind and compatibility support for .node-version and .nvmrc files. The most recent release of Node.js is available via the www/node port.
๐ŸŒ
ServerMania
servermania.com โ€บ home โ€บ how to โ€บ software installation โ€บ how to install node.js on ubuntu
How To Install Node.js on Ubuntu - ServerMania | ServerMania
July 17, 2024 - This step-by-step tutorial will show you how to install Node.js on an Ubuntu server using several different methods.
๐ŸŒ
Relia Software
reliasoftware.com โ€บ blog โ€บ install-nodejs-on-ubuntu-22-04
How to Install Node.js on Ubuntu 22.04? | Relia Software
February 27, 2024 - 3 methods for installing Node.js on Ubuntu 22.04: with Ubuntu Package Manager; with NVM (Node Version Manager); and from Official Node.js Binary Distributions.
Price ย  $$$$$
Address ย  629 Nguyen Kiem, Ward 9, Phu Nhuan District, 700000, Ho Chi Minh
๐ŸŒ
DedicatedCore
dedicatedcore.com โ€บ home โ€บ how to install node.js on ubuntu (22.04, 23.04)
How to Install Node.js on Ubuntu (22.04, 23.04) - DedicatedCore Blog
August 17, 2024 - The most recommended approach. This method entails downloading the most recent versions of Node.js. Also npm from the Ubuntu repository. Installing them using the apt package manager.