How To Install Nodejs Into Ubuntu, Debian, Fedora, CentOS, RedHat

Nodejs is a platform built on Google Chrome Javascript runtime. Nodejs have different usage where Javascript traditionally used in client side applications. Nodejs can be used both client and server side applications. In this tutorial we will look how to install Nodejs into Linux distributions like Ubuntu, Debian, Fedora, CentOS, RedHat .

Install Using Yum Package Manager

We can use yum package manager in order to install Nodejs. We will run following command in order to install for Fedora, CentOS, RedHat .

1

$yum install nodejs

Install Using Yum Package Manager

Install Using Apt Package Manager

We can use apt or apt-get package manager in order to install Nodejs. This will work Ubuntu and Debian based distributions too.

1

$apt install nodejs

Install From Binaries

If we need up to date binaries about Nodejs we can download from official site. There is two version to download Nodejs. Lower version is recommended for most of the users which is currently 6.11.0 LTS . LTS means long term support which means this version will be supported for the long time and will not create compatibility problems.

8.1.3 version will be change during time. This version will have the latest features but it is not stable for production use.