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

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/install-nodejs-ubuntu-debian-fedora-centos-redhat/
PINTEREST
PINTEREST
INSTAGRAM

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 .

Install Using Yum Package Manager

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.

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.

Download

Simply download from following link.

https://nodejs.org/en/download/

Extract

and then extract downloaded file with the xz command like below.

Update Path Environment Variable

In order to access node binary from shell we need to add the bin folder of the extracted folder to the PATH variable like below.

LEARN MORE  How To Install Gulp with Npm

We can test the Nodejs just typing following command.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/install-nodejs-ubuntu-debian-fedora-centos-redhat/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

1 Response

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)