本文最后更新于:4 个月前
1
提示YAMLException: end of the stream or a document separator is expected at line 2, column 5:
$ hexo g
INFO Start processing
ERROR Process failed: _posts/Druid的配置及连接.md
YAMLException: end of the stream or a document separator is expected at line 2, column 5:
date: 2020-02-23 17:36:53
^
解决
出现这种情况,一般都是缺少空格,在 :
冒号之后要有空格!
检查x行y列附近的冒号,其之后是否跟了空格。
2
提示YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 2, column 5:
ERROR Process failed: _posts/随机动漫图片api.md
YAMLException: end of the stream or a document separator is expected at line 2, column 5:
tags:
^
解决
可能是缺少了必要的空格,和上面的解决一样
但是也可能是缺少必要的引号,比如''
更多
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!