安装grunt

1,npm install -g grunt-cli

2,npm install grunt --save 作为项目的依赖安装

这两步必不可少

原文地址:https://www.cnblogs.com/toward-the-sun/p/4825081.html