“Fatal error: Unable to find local grunt.” when running “grunt” command

下载到本地

>npm install grunt

>grunt

命令行运行:grunt,出现以下问题:

 

这些是Gruntfile.js中引用的,依次安装:

npm install grunt-contrib-copy

npm install grunt-contrib-concat

npm install grunt-contrib-uglify

npm install grunt-css

原文地址:https://www.cnblogs.com/holy-amy/p/6882540.html