Install Node.js through NVM and EPEL on CentOs/RHEL 7 Linux

Spread the love

Earlier we have done node.js installation through source package , you can find here that post from below link. Node.js Installation from Source . Here we are going to install node.js through two method first one is from EPEL repository and other from Node Version Manager ( NVM ) .

Method 1 : Install Node.js from EPEL Repository

I am going to configure node.js on CentOs 7 Server . first we need to configure EPEL on CentOs 7 from below link of article.

After installation run the below command for installation of node.js . I am assuming you have root previlage of server , otherwise if you have user sudo previlage , you need to use sudo before command.

Method 2 : Install Nodejs from Node Version Manager ( NVM )

Second method we are using through nvm tool, that can manage node easily. To install nvm on centos 7 , you can download and execute script from git hub repository. Below are two command , which you can use to download and execute the script from curl and wget command.Follow below commands.