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).


Figure 4.5 If npm is properly installed, ...

Get Learning to Program now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.