
Grunt is a front-end automation tool, and there are plenty of blog posts on the internet about how to install and use it:
http://www.cnblogs.com/wangfupeng1988/p/4561993.html
http://www.cnblogs.com/lhb25/archive/2013/01/24/grunt-for-javascript-project-a.html
Since Grunt installation depends on Node.js, this article mainly covers solutions for when “npm install grunt” downloads slowly or fails entirely. The fix is simple: specify the download registry by appending -registry "http://registry.npmjs.org" to the command, which changes the default from HTTPS to HTTP. Alternatively, Chinese internet companies like Taobao also provide registries that you can search for and use.
For example:
| |