inside the mind of a linux admin

How do you install Node.JS on CentOS?

There’s a ton of outdated information floating around the web on how to simply and effectively install Node.JS on CentOS, specifically one of my legacy boxes that runs 5.11. I spent about 15-20 minutes toying around with various hacky ways to do this. To save you the time, here’s the easiest way I found:

Perform (as root):


curl -sL https://rpm.nodesource.com/setup | bash -
yum install -y nodejs

If you’re a security fanatic like myself, you’ll likely want to first download the ‘setup’ script before piping it to bash. If you don’t care, I can assure you I’ve reviewed the code and rpm.nodesource.com is a trusted source.

It will output each step as it moves along, prompting you to manually install any 3rd party dependencies.

Once done, verify your install with:


node -v

Related Posts

How to install CSF Firewall on CentOS 7

ConfigServer (CSF) is advanced open-source firewall for Linux. If you are like me, I don’t really care much for the native firewalld that’s included with RHEL7 releases, and I’ve used APF for years which is basically just a frontend for iptables. Here’s instructions on how to install it: 1. Disable firewalld systemctl stop firewalld systemctl […]

Read More

ScreenCloud: Troubleshooting missing Python modules after updates

One of my favorite tools that I find myself using quite often is called “ScreenCloud“. It allows you to quickly select any area of your workspace, create an sized screen shot, and then upload it or export it off to their server, your Dropbox account or an SFTP server. If you’ve recently performed upgrades, either […]

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

Twitter: kireguy

Tweeter button Facebook button Myspace button