Gruntjs “运行”;jshint:files";(jshint)任务警告:路径必须是字符串。接收到null Use--强制继续

Gruntjs “运行”;jshint:files";(jshint)任务警告:路径必须是字符串。接收到null Use--强制继续,gruntjs,jshint,Gruntjs,Jshint,运行grunt给了我以下信息: $ grunt Running "jshint:files" (jshint) task Warning: Path must be a string. Received null Use --force to continue. Aborted due to warnings. 如果有帮助,我有: jshint: { files: [ 'Gruntfile.js', '<%= paths.src %>/js/globals.

运行
grunt
给了我以下信息:

$ grunt 
Running "jshint:files" (jshint) task
Warning: Path must be a string. Received null Use --force to continue.

Aborted due to warnings.
如果有帮助,我有:

jshint: {
  files: [
    'Gruntfile.js',
    '<%= paths.src %>/js/globals.js',
    '<%= paths.dist %>/js/**/*.js',
    '<%= paths.src %>/test/**/*Spec.js'
  ],
jshint:{
档案:[
“Gruntfile.js”,
“/js/globals.js”,
“/js/***.js”,
“/test/***/Spec.js”
],
有什么建议吗?


您可能只需要将
grunt contrib jshint
调到
0.11.1
或更高版本:)

可能在
选项中设置了
reporterOutput:null
。您可以尝试将其设置为空字符串:
reporterOutput:
,如前所述