Install Node.js & Grunt in Ubuntu 14.04

Add apt-repository

First you need to add this for add-apt-repository command to work:


$ apt-get install software-properties-common

$ sudo: add-apt-repository: command not found

Install Node

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

Install Grunt

sudo npm install -g grunt-cli