Linux Tips & Tutorials Webservers

How to install Nodejs on CentOS


The objective of this small HowTo is to help the system administrators setup NodeJS on their CentOS Server.

NOTE: The mentioned steps are successfully ran on CentOS 6 version


Step1: Make sure we have EPEL repository installed on the system because nodejs package is a part of EPEL repository

rpm -ivh

Step 2: After installing EPEL repository successfully, we need to give below command to install nodejs package & its dependencies

yum install nodejs

Step 3: Next, we also need to install npm package which is also required with nodejs

yum install npm

Step 4: Now, you should be having node & npm commands available on your system. To make sure these commands exist, run below commands:

npm -v

node -v

That's All. Your system is now installed with nodejs 🙂

By Sushant Chawla

Over the past 11 years I have acquired very good knowledge of:

- Cloud Setup on Amazon, Rackspace with autoscaling, load balancers, etc
- LAMP architecture
- LNMP Architecture
- Apache, Nginx, Lighttpd
- Databases: MySQL and PostgreSQL
- Bash Scripting
- Configuration Management with Puppet
- Monitoring: Nagios, Zabbix, ICINGA
- Mail servers: Sendmail, Postfix, Exim
- Web Accelerators & Caching Setups with Memcache, Varnish & Redis
- Setup and Management of high availability applications clusters
- LDAP, Samba, NFS, FTP, DNS, DHCP, Openfire, Squid Proxy
- Subversion(SVN), GIT
- Control Panels: Plesk, Webmin, cPanel

Apart from Linux, I am a great sports star & regular traveller. I like working out and exploring various places.

Cheers ;-)