Warning: Path must be a string . Received null Use --force to continue
2017-05-11 14:40
621 查看
用grunt监视文件,当文件修改时,出现'Warning: Path must be a string . Received null Use --force to continuechuxian 。
![](https://img-blog.csdn.net/20170511144407380?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMjg1MDY4MTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
这个问题是因为没有设置reporterOutput,修改Gruntfile.js,添加如下
![](https://img-blog.csdn.net/20170511144554398?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcXFfMjg1MDY4MTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
reporterOutput是设置错误报告的输出路径,默认为null,可以是一个文件名,则报告会输出到文件中,如果设为空字符串"",则会控制台打印。
这个问题是因为没有设置reporterOutput,修改Gruntfile.js,添加如下
reporterOutput是设置错误报告的输出路径,默认为null,可以是一个文件名,则报告会输出到文件中,如果设为空字符串"",则会控制台打印。
相关文章推荐
- tomcat 7 WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
- could not be set to a 'string' value. You must set this property to a non-null value of type
- gulp 打包错误 TypeError: Path must be string. Received undefined
- Warning: not found: compass Use --force to continue
- Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named
- TypeError: Path must be a string. Received undefined
- error : A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be ext
- java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=Aict/listPagedAict.action
- You must be root to run this script, please use root to install lnmp
- String cannot be resolved to a type - The method getContextPath() from the type HttpServletRequest r
- Python出现TypeError: file() argument 1 must be encoded string without NULL bytes, not str问题解决
- IllegalArgumentException: Argument for @NotNull parameter 'file' of com/intellij/openapi/vfs/VfsUtilCore.virtualToIoFile must not be null
- IllegalStateException: Fragment null must be a public static class to be properly recreated from ins
- A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法
- “A wireless radio must be attached to use the phone” 解决办法
- 【转】WARNING! File system needs to be upgraded. You have version null and I want version 7. Run the '${HBASE_HOME}/bin/hbase migrate' script. 的解决办法
- Google App Engine问题之Your project must be configured to use a JDK in order to use JSPs
- dom4j:Adding text to an XML document must not be null
- 遇到bower Arguments to path.join must be strings
- The path to the driver executable must be set by the webdriver.gecko.driver system property