O'Reilly logo

Grunt Cookbook by Jurie-Jan Botha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing the Grunt CLI

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.

Tip

In this book, we'll work with version 0.4.x of Grunt, which requires Node.js version 0.8.x or higher.

How to do it...

The following steps will take us through installing the Grunt CLI and testing for its successful installation.

  1. Assuming that you already have a global installation of Node.js, the following is the command to install the Grunt CLI:
    $ npm install --global ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required