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:
,如前所述