How to install the latest LTS version of node on Ubuntu

JavaScript

Finally it's easy to upgrade NodeJS.

First Google latest Node LTS version:

image.png 68.53 KB

Then substitute the `22` below with the latest LTS version as per your google results:

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

Then:

sudo apt install -y nodejs