Home Install NodeJS
Post
Cancel

Install NodeJS

Node.js adalah runtime JavaScript untuk pemrograman sisi server. Hal ini memungkinkan pengembang untuk membuat fungsionalitas backend yang dapat diskalakan menggunakan JavaScript, bahasa yang sudah dikenal banyak orang dari pengembangan web berbasis browser

Tutorial kali ini akan membahas cara install NodeJS dengan beberapa versi dan OSnya

Node.js v20.x

Using Ubuntu

1
2
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Using CentOS

1
curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -

Node.js v19.x

Using Ubuntu

1
2
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Using CentOS

1
curl -fsSL https://rpm.nodesource.com/setup_19.x | sudo bash -

Node.js v18.x

Using Ubuntu

1
2
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Using CentOS

1
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -

Node.js v16.x

Using Ubuntu

1
2
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Using CentOS

1
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -

Node.js v14.x

Using Ubuntu

1
2
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

Using CentOS

1
curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -

Referensi:

This post is licensed under CC BY 4.0 by the author.