
Installing : python3-setuptools-39.2. 1/4 It will take a few seconds, and in the end, you should see something like below. If you are using CentOS 8.x then you may also try DNF. CentOS/RHEL 7.x or 8.xįirst, you need to install the NodeSource repository with the following command.Īnd then, install the Nodejs as below. nodejs as you can see, it has installed 11.7.0 version. It will take a few seconds and once done you should be able to verify the version. Next, you will have to install the nodejs with the following command.Sudo apt-get update & sudo apt-get install yarn # To install the Yarn package manager, run:Įcho "deb stable main" | sudo tee /etc/apt//yarn.list # You may also need development tools to build native addons: # Run `sudo apt-get install -y nodejs` to install Node.js 11.x and npm At the end of the above output, you should see something like this. The above will download and install the NodeSource Node.js repository. To install Node.js 14.x curl -sL | sudo -E bash. To install Node.js 12.x curl -sL | sudo -E bash. To install Node.js 11.x curl -sL | sudo -E bash. But not to worry, you can use NodeSource distribution as the following. The latest version of Nodejs is not available through the default repository.

The following, I’ve tested on the DigitalOcean server. Let’s get it started. Technically, there are multiple ways to get things installed but following the easy and right process will make life much easier. If you recently started learning Nodejs development, then one of the first things you need to do is to install them.

Node.js popularity is growing faster than ever. Procedure to install Node.js 11.x, 12.x, 14.x on Ubuntu 16.x/18.x, CentOS 7.x/8.x through binary distribution or from the source.
