Grunt.js Warning: Path must be a string

文章目录

    Github 上找了个 Chrome 插件进行修改,但是运行 grunt 命令之后报错

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

    解决方法

    grunt --force
    

    这 TM 不严谨了。。。

    Running "simplemocha:all" (simplemocha) task                                                
    1..6                                                                                             
    (node:15269) DeprecationWarning: 'GLOBAL' is deprecated, use 'global' 
    ok 1 generative should parse simple literal
    ok 2 generative should parse simple 2 elm literal to concatenated string
    ok 3 generative should parse simple fn
    ok 4 generative should parse nested fn (1 level only)
    ok 5 generative should parse simple fn with array arg
    ok 6 generative should parse complex mixed fn and literal expression
    # tests 6
    # pass 6
    # fail 0
    
    Running "concat:content" (concat) task
    File "src/extension/generated/xxx-content-packed.js" created.
    
    Running "compress:main" (compress) task
    Created xxx-dist.zip (196952 bytes)
    

    关于作者 🌱

    我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊,或者关注我的个人公众号“大象工具”, 查看更多联系方式