Install and build Node
We need first to install the required tools to build Node on Linux:
- ssl packages
Following command will install such tools thanks to the Debian package manager:
sudo apt-get install build-essential openssl libssl-dev pkg-config
Lets now download the current version of Node from its web site http://nodejs.org/download/. The current version is 0.10.31 at the time of writing. Now you got the distribution archive, just launch the following commands:
./configure && make && sudo make install
Now you should have Node and NPM (the package manager that comestible with Node) installed. Juste launch the following commands to check if everything is correctly installed:
$ node -v
$ npm -v
Yeoman requires Ruby for its generators, at least for the Angular generator. We will describe later what Yeoman is and can be used for.
We can install Ruby and its related tools for development using the Debian package manager with the following commands:
sudo apt-get install ruby
sudo apt-get install ruby-dev
Now you should have Ruby installed. Lets check this using the command ruby:
$ ruby --version
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
We also need to install Saas and Compass with Ruby. Saas is a CSS preprocessor and Compass a XX.
We can use the command gem of Ruby to install them, as described below:
$ gem install saas
$ gem install compass
Yeoman is a tool that helps developers to kickstart new projects, prescribing best practices and tools to help them stay productive.
Yeoman can be installed from the package manager NPM. Its package name is yo.
$ sudo npm install -g yo
We can notice the option -g that names the install global. Without this option, the installed will only salve within the current directory.
We can also chose to install a specific version of Yeoman. Following command install its version 1.2.1:
sudo npm install -g firstname.lastname@example.org
Since Yeoman relies on Bower for Web dependencies and Grunt for packaging build, you should now have all these tools installed. To check this, we can use the following commands:
$ yo --version
$ bower --version
$ grunt --version
If we want to create Angular applications, we also need to install the Angular generator for Yeoman. This can be donne with NPM with the following command:
$ sudo npm install --global email@example.com
Install Grunt and Bower without Yeoman
We can also decide not to use Yeoman but Grunt and Bower. In this case, we simply need to use NPM to install them, as described below:
$ npm install -g grunt-cli
$ npm install -g bower