Install Grunt

When you install Node, another command-line program called npm is also installed. npm, short for Node Package Manager, is used to install software packages that run on Node.js. Grunt is a Node.js package, so it can be installed using npm. First, make sure that npm is properly installed by typing npm on the command line. If you see something that looks like Figure 4.5, then you have npm. Next, navigate to your kittenbook directory using the command line. You will be installing Grunt for your kittenbook project. First, though, you need to install the Grunt command-line tool (see Listing 4.1).

Image

Figure 4.5 If npm is properly installed, ...

Get Learning to Program now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.