Grunt没有定义 [英] Grunt is not defined

查看:78
本文介绍了Grunt没有定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚开始使用grunt,当我运行 grunt 时,我得到这个错误

Just Getting started with grunt, and when I run grunt I get this error

Loading "Gruntfile.js" tasks...ERROR
>> ReferenceError: grunt is not defined

这是我的Gruntfile.js

This is my Gruntfile.js

module.exports = function(grunt){
  'use strict';
};


推荐答案

不完全确定原因,但是这解决了这个问题:

Not entirely sure why, but this resolved that issue:

'use strict';
module.exports = function(grunt){
};

这篇关于Grunt没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆