Install nodejs on CentOS

I’m using a Centos 7.1 on Azure. Node.js is not there in default repo for CentOS via yum. But you can get it using EPEL. After you install EPEL you can get nodejs.

cd /usr/src/
sudo yum install epel-release
sudo yum install nodejs
sudo yum install npm

And don’t forget npm!


Advertisements