为何找不到Gruntfile.js?明明在当前目录啊
<img src=“http://img.itc.cn/photo/oTBjL5WTwl0”>
3 回复
确保你安装了grunt模块 npm install grunt
把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);
}
}