Welcome to Something!
In this guide, you will learn how to install NodeJS

This guide was created for Ubuntu 18.04 but should work on another Ubuntu flavors.

Need help connecting to your VPS? Check out this tutorial!

- Summary

This tutorial aims to download NodeJS v14. To do that we need to execute 3 commands. If you need detailed instructions, follow the next part of this guide.

Note! Each line is a command that needs to run separately
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y gcc g++ make
sudo apt-get install -y nodejs


- Detailed instructions

The first step we need to do is to make sure our operating system is up-to-date. To do that we need to run the command

$ sudo apt-get update

Once the repository library has been updated, the next command we want to run will download and setup the latest stable version of NodeJS v14

$ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

Next up we need to install required tools by NodeJS that allows up to build certain modules

$ sudo apt-get install -y gcc g++ make

Lastly we want to install NodeJS and to do that we have to run

$ sudo apt-get install -y nodejs

- Result

Congratulations! You have installed NodeJS v14 to your VPS, test it out by running `node -v`!
Was this article helpful?
Cancel
Thank you!