How
to install Node, Gulp and Bower on Cpanel
This article will teach you how to install
Node, Gulp and Bower on your Cpanel box step-by-step and not only will it teach
you how to install these programs but also the definitions of these programs
are given down below for your reference as knowing a few things about these
programs beforehand is important so that you can use them effectively causing
minimum errors.
What is Node?
Node built by Ryan Dahl is an open-source cross-platform
built on Chrome’s JavaScript runtime for building fast, server-side
web-applications without any hassle. Its event-driven, non-blocking I/O makes
it lightweight and efficient which makes it perfect to use for data-sensitive
real-time applications that run across distributed devices.
What is Gulp?
Gulp based on Node is a task runner used
for software development and deployment automation. It is very fast, simple and
efficient. It uses the power of Node’s streams to get fast builds which don’t
write intermediary files to disk. By preferring code over configuration, gulp
makes complex tasks simpler.
What is Bower?
One of the must-have tools for any
web-developer, Bower developed by Alex MacCaw and Jacob is a package manager
for managing web framework, libraries, utilities and assets. It can manage
components that contain HTML, CSS, JavaScript, fonts and even image files. It
doesn’t concatenate or minify code but rather installs the right packages and
their needed dependencies.
Now that we are familiar with the basics of
Node, Gulp and Bower we can now go on ahead with our step-by-step guide to
install these on our Cpanel Box
Guide
to Install Node, Gulp and Bower on a Cpanel Box :-
A few things to note before heading on with
the installation, the first thing you should do is to check wether or not you
are running the latest Cpanel Box i.e. WHM 11.42.0 (Build 23) running on CentOS
6. Once all these requirements are confirmed we can be sure that “git” has been
installed and running as required by “npm”.
Now once after all the requirements
presented above are carried out you can now move towards the actual
installation stage. The steps to install Node, Gulp and Bower on your Cpanel
Box are as follows :-
1.)
To ensure that “bzip” has been
installed, type the following code in the terminal window :
“# rpm –qa|grep
bzip2-devel
bzip2-devel-1.0.5-7.el6_0.x86_64”
2.)
After ensuring that bzip has
been installed check with Python is installed or not by using the following
code :
“# python –V
Python 2.6.6”
3.)
Make sure you get the latest
version of Node.js from http://nodejs.org/download
and to install it and make it available for all users on your PC type the
following code :-
“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”
4.)
Now that node has been
installed just validate it by typing the following code :-
“# node -v
v0.10.26”
5.)
To install Bower on Cpanel use
the following code :-
“npm install bower –g”
6.)
To install Gulp on Cpanel use
the following code :-
“npm install gulp –g”
Now that you’ve
got Node, Gulp and Bower installed — you and your users can access it by using
their SSH access. If any certain code doesn’t work then rewrite it again by
checking the codes given above and then running it.