Grunt jshint Warning: Path must be a string . Received null Use

用grunt监视文件,出现'Warning: Path must be a string . Received null Use --force to continue

原因是没有设置reporterOutput,reporterOutput是设置错误报告的输出路径,默认为null,可以是一个文件名,则报告会输出到文件中,如果设为空字符串"",则会控制台打印。

jshint: {
        options:{
            reporterOutput:''
        },
      all: ['global.js'],
    }
原文地址:https://www.cnblogs.com/cc-xiao5/p/8329155.html