How to install NodeJS 4.x (LTS) on CentOS
Recently io.js and node.js merged again into a single codebase in Node v4.0.0. The fork happened in December 2014 and io.js has seen rapid improvements and fast uptake of upstream V8 features.
Now the merge has happened, and with it comes a lot of features from the io.js codebase. NodeJS 4.2.0 has been released on October 12, which is labelled as the first Long Term Support (LTS) release of NodeJS. This means that NodeJS v4.x is going to be officially supported without backward incompatible updates for 30 months, until June 2017.
Sadly the standard installation instructions on the downloads page for installing a current version of node with yum is not updated to the new NodeJS v4.x releases!
So here is a quick and easy way how to install the current NodeJS 4.x LTS (including
npm) on CentOS from the official RPM repository.
Enjoy NodeJS 4.x LTS on CentOS, and reach out to me on Twitter @metachris