Warning: Path must be a string . Received null Use --force to continue

来源:互联网 发布:天猫与淘宝的盈利方式 编辑:程序博客网 时间:2024/05/16 17:01

用grunt监视文件,当文件修改时,出现'Warning: Path must be a string . Received null Use --force to continuechuxian 。


这个问题是因为没有设置reporterOutput,修改Gruntfile.js,添加如下


reporterOutput是设置错误报告的输出路径,默认为null,可以是一个文件名,则报告会输出到文件中,如果设为空字符串"",则会控制台打印。

0 0
原创粉丝点击