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-20-04
How to Install Node.js on Ubuntu | DigitalOcean
May 2, 2025 - To update Node.js on Ubuntu, you can use the package manager you used to install it. If you used apt, you can update Node.js by running sudo apt update && sudo apt full-upgrade. If you used NVM, you can update Node.js by running nvm install node --latest.
Discussions

node.js - how to install a latest version of Nodejs on Ubuntu? - Stack Overflow
I start using ubuntu (22.04.1) recently. I want to install nodejs latest version (currently v18.12.1 LTS). But my node --version showing version v12.22.9. First I install node using sudo apt-get in... More on stackoverflow.com
🌐 stackoverflow.com
[Ubuntu] How to install a newer version of Node than the one provided by apt?
Nvm solves all my issues with version swapping More on reddit.com
🌐 r/node
13
12
April 17, 2022
How to Install Node.js on Ubuntu 22.04 LTS | Configure Node.js and NPM |...
You should probably put in your title the reason why you needed to make this video. The official installation instructions are here: https://nodejs.org/en/download/package-manager#debian-and-ubuntu-based-linux-distributions More on reddit.com
🌐 r/node
2
0
April 18, 2023
What is the correct way of installing nodejs on Ubuntu?
Follow project maintainers instructions. Package in main repo is older. Node development moves pretty fast. You'll be pretty far behind pretty quickly. More on reddit.com
🌐 r/Ubuntu
7
11
April 11, 2016
🌐
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.
🌐
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.
🌐
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 - For updating to the latest versions of all the relevant packages, use sudo apt update in the terminal. Use your password when it asks for that. ... Now use sudo apt upgrade -y to upgrade all the upgradable packages.
🌐
Linode
linode.com › docs › guides › install-nodejs-on-ubuntu-22-04
Installing Node.js on Ubuntu 22.04 | Linode Docs
February 24, 2023 - Developers use Node.js to perform many tasks. It’s used to install other applications, run server-side code, and execute JavaScript for user environments such as web applications. This guide shows you how to install Node.js on Ubuntu 22.04.
🌐
Medium
medium.com › @redswitches › install-the-latest-node-js-version-on-ubuntu-22-04-ca7d7c83a5b0
Install the Latest Node.js Version on Ubuntu 22.04 | Medium
August 29, 2024 - Q. How can I install Node.js on Ubuntu 22.04 using nvm? First, install nvm using a script. Then, use nvm to install the latest version of Node.js by running nvm install node.
Find elsewhere
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
We do not recommend using a Node ... to download the latest version of npm, on the command line, run the following command:npm install -g npm...
🌐
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 - Before proceeding, we recommend ... Ubuntu installation. These steps are valid for the most recent versions of Ubuntu: Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04. If you are using Ubuntu version <= 18.04, we recommend you upgrade to a more latest version since Ubuntu no longer provides support for the older versions. This collection of guides will help you in upgrading your Ubuntu version. Ubuntu contains a version of Node.js in its default ...
🌐
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.
🌐
Cherry Servers
cherryservers.com › home › blog › linux › how to install npm on ubuntu 24.04 (3 methods)
How to Install NPM on Ubuntu 24.04 (3 Methods) | Cherry Servers
March 26, 2025 - To install NPM on Ubuntu 24.04, Node.js must be set up. This guide explores three installation methods: using Ubuntu's default repository, the NodeSource repository, and the Node Version Manager (NVM). Each approach is suited to different use cases, such as stability, access to the latest features, ...
🌐
Reintech
reintech.io › blog › installing-nodejs-npm-ubuntu-2004
Installing Node.js and NPM on Ubuntu 20.04 | Reintech media
May 28, 2025 - To install, run the following commands: ... If you require a more recent version of Node.js, you can use a PPA (Personal Package Archive) provided by NodeSource. This PPA will usually provide the latest stable version of Node.js and NPM.
🌐
Vultr
docs.vultr.com › how-to-install-node-js-and-npm-on-ubuntu-24-04
How to Install Node.js and NPM on Ubuntu 24.04 | Vultr Docs
July 25, 2024 - Learn to install Node.js and NPM on Ubuntu 24.04 using NodeSource PPA and manage versions with NVM efficiently.
🌐
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 - This method uses the APT package manager to install Node.js from the Ubuntu default repositories. It is straightforward and integrates well with your system’s package management. Update your package index: Before installing new software, it’s a good practice to update your package index to ensure you get the latest ...
🌐
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 - This method entails downloading the most recent versions of Node.js. Also npm from the Ubuntu repository. Installing them using the apt package manager. The majority of consumers are advised to choose this technique. Just because it is simple to use and offers a secure installation. To ensure you’re running the latest features, learn how to check and install the current Node.js version by following our detailed manual.
🌐
Microsoft Learn
learn.microsoft.com › en-us › windows › dev-environment › javascript › nodejs-on-wsl
Install Node.js on Windows Subsystem for Linux (WSL2)
See the WSL install documentation if you plan to use a Linux development environment with Node.js. These steps will include choosing a Linux distribution (Ubuntu is the default) and the version of Windows Subsystem for Linux (WSL 2 is the default and recommended version).
🌐
CloudCone
cloudcone.com › home › how to install node.js on ubuntu 22.04
How to install Node.JS on Ubuntu 22.04 - Tutorials and How To - CloudCone
June 30, 2022 - You can install NodeJS from Ubuntu repositories, you can install from Nodesource or install NodeJS using NVM. Node.js and npm are available in the default Ubuntu repositories. As such you can easily install them using the APT package Manager.
🌐
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 - This command contacts the software repositories configured on your system and updates the package lists to reflect the latest available version. ... Once your package repository is updated, you can proceed to install Node.js. In the terminal, run the following command to install Node.js ... This command installs the Node.js package from the Ubuntu repository.
Price   $$$$$
Address   629 Nguyen Kiem, Ward 9, Phu Nhuan District, 700000, Ho Chi Minh
🌐
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
Check the Node.js and NPM version using the following commands respectively: ... If you want to install the latest Node version on your Ubuntu system, it is preferred to install Node.js from the NodeSource repository.