【问题标题】:Running "jshint:files" (jshint) task Warning: Path must be a string. Received null Use --force to continue运行“jshint:files”(jshint) 任务警告:路径必须是字符串。收到 null 使用 --force 继续
【发布时间】:2017-04-03 13:15:43
【问题描述】:

运行 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'
  ],

有什么建议吗?

【问题讨论】:

  • 也许在你的options 中你设置了reporterOutput: null。您可以尝试将其设置为空字符串:reporterOutput: "",正如讨论的 here

标签: gruntjs jshint


【解决方案1】:

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

您可能只需要将grunt-contrib-jshint 升级为0.11.1 或更新版本:)

【讨论】:

    猜你喜欢
    • 2016-12-08
    • 2016-07-25
    • 2023-03-28
    • 2016-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-27
    • 2023-04-01
    相关资源
    最近更新 更多