HomeGuest BlogsInstall Node.js 18 on Ubuntu / Debian / Linux Mint

Install Node.js 18 on Ubuntu / Debian / Linux Mint

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

Welcome to our guide on how to install Node.js 18 LTS on Ubuntu / Debian / Linux Mint server or Desktop system. This guide will cover installation of Node.js 18 on Ubuntu / Debian / Linux Mint from binary package.

install nodejs ubuntu 18.04 debian 9

Update System

Ensure you have the latest updates for Debian / Ubuntu / Linux Mint.

sudo apt -y update && sudo apt -y upgrade

Install Node.js 18 on Ubuntu / Debian / Linux Mint

After system update, install Node.js 18 on Ubuntu / Debian / Linux Mint by first installing the required repository.

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -

Once the repository is added, you can begin the installation of Node.js on Ubuntu / Debian / Linux Mint.

sudo apt install -y nodejs

Use the following command to check installed version of Node.

$ node -v
v18.17.1

If you need Development tools, install them with the command:

sudo apt install gcc g++ make

The Yarn package manager can be installed by running the commands:

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

There you have it. Node.js 18 has been installed on Debian / Ubuntu / Linux Mint machines.

Books For Learning Node.js programming:

Similar:

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}
RELATED ARTICLES

Most Popular

Dominic
32686 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
7055 POSTS0 COMMENTS
Nicole Veronica
12194 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12291 POSTS0 COMMENTS
Shaida Kate Naidoo
7180 POSTS0 COMMENTS
Ted Musemwa
7444 POSTS0 COMMENTS
Thapelo Manthata
7157 POSTS0 COMMENTS
Umr Jansen
7147 POSTS0 COMMENTS