跳到主要内容
CNode

为何找不到Gruntfile.js?明明在当前目录啊

社区
Kkingapple发布于 12 年前最后回复 12 年前
342430
文章图片
查看回复

回复 (3)

引用 karlsun__legacy_5386cce8a087f456200fc1ee确保你安装了grunt模块 npm install grunt

@kingapple grunt-cli源码中的方法

try {
  gruntpath = resolve('grunt', {basedir: basedir});
} catch (ex) {
  gruntpath = findup('lib/grunt.js');
  // No grunt install found!
  if (!gruntpath) {
    if (options.version) { process.exit(); }
    if (options.help) { info.help(); }
    info.fatal('Unable to find local grunt.', 99);
  }
}
K
kingapple#212 年前

确保你安装了grunt模块 npm install grunt

参与回复

登录后即可参与回复。登录