- The following document provides instructions on installing the most current Node.js long-term-support (LTS) version.
- This installation was performed on 12/15/2022 which installed Node.js LTS version 18.12.1 for Ubuntu 20.04.
-
The most current LTS version can be identified on the official Node.js homepage.
-
Next, go to the official repository's README.md, "Installation Instructions" section then identify your desired version and execute the referenced Ubuntu command inside a terminal.
shawn@shawn-VirtualBox:~$ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
- verify it has been installed with the following command
shawn@shawn-VirtualBox:~$ node --version :: your version will be different
v18.12.1