Installing Node, Bower and Gulp on a cPanel box

I've been using Node, npm, bower and gulp in my local Vagrant VM under Ubuntu. However, as one of my current projects will be shuffled off to a cPanel CentOS server soon, I thought I would check how easy it is to install all this on the cPanel side. This mini-how-to assumes you are running the latest cPanel (WHM 11.42.0 (build 23) as of this writing) running on CentOS 6. Assuming you have this configuration, then you will already have git installed and running as required by npm in some instances. First step, ensure bzip is installed
# rpm -qa|grep bzip2-devel
bzip2-devel-1.0.5-7.el6_0.x86_64 
If it's not installed, you will need to install it. Also be sure you have python 2.6.6 or later installed. You should if you are on the latest version of cPanel:
# python -V
Python 2.6.6 
If you have a lower version, please upgrade cPanel before you proceed past this point!
For this setup I'm going to install node into /usr/local/ so all the users have access to it:
cd /usr/local/src
wget http
://nodejs.org/dist/v0.10.26/node-v0.10.26.tar.gz
tar -zxvf node-v0.10.26.tar.gz
cd node
-v0.10.26
./configure --prefix=/usr/local
make
make install 
Node should now be installed. To ensure it is you can quickly do this:
# node -v
v0.10.26 
Now we can install bower and gulp:
npm install bower -g
npm install gulp 
-
And that's it! Now you and your users with ssh access should be able to manage their own bower and gulp setup. If you're looking for some really great tutorials on how to use Bower and Gulp and all sorts of other great PHP and Laravel development information, check out Laracasts by Jeffrey Way. It'll will most likely be the best $9 a month you've ever spent!