Grunt is the JavaScript task runner for Node.js.
In order to install it, you first need to install Node.js 0.8.0 or a newer version, and fix the npm (node package manager) permissions. then:
1. Install the Grunt’s command line interface (CLI) with:
npm install -g grunt-cli
sources: