In order to make use of a Grunt configuration file, the Grunt command-line interface (CLI) tool needs to be installed.
Command-line tools such as the Grunt CLI are usually installed globally. This means that they are installed on top of the Node.js installation that is currently active in your terminal, and not in the current project path, as is usually the case.
In this book, we'll work with version 0.4.x of Grunt, which requires Node.js version 0.8.x or higher.
The following steps will take us through installing the Grunt CLI and testing for its successful installation.
$ npm install --global ...