正在运行" jshint:files" (jshint)任务警告:路径必须是字符串。收到null使用--force继续

时间:2017-04-03 13:15:43

标签: 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.js',
    '<%= paths.dist %>/js/**/*.js',
    '<%= paths.src %>/test/**/*Spec.js'
  ],

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

https://github.com/globalizejs/globalize/issues/666

您可能只需将grunt-contrib-jshint提升为0.11.1或更高版本:)