1 grunt and Grunt plugins are installed and managed via NPM, NPM is a node. js Package Manager
2 GRUNT-CLI is grunt plug-in, install it into the global environment can execute grunt command in any directory, GRUNT-CLI task is simple: Call Gruntfile in the same directory grunt.
3 You need to add two files in your grunt project: Package.json and Gruntfile
Package.json: This file is used by NPM to store the item's metadata in order to publish the project as a NPM module. You can list the project-dependent grunt and grunt plugins in this file and place them in the Devdependencies configuration section.
Gruntfile: This file is named Gruntfile.js or Gruntfile.coffee, which is used to configure or define tasks (Task) and load the grunt plug-in.
4 the npm install command installs dependencies to the current version according to each dependency listed in the Package.json file.
5 Use the npm install <model>--save-dev command to install the model and add it to the Devdependencies configuration section, such as the command to install grunt for NPM install <model>--save-dev
6 Grunt Plugin list is address: Http://www.gruntjs.net/plugins
Grunt (JavaScript World building tools) Basics Summary