本文最后更新于:4 个月前

1

提示YAMLException: end of the stream or a document separator is expected at line 2, column 5:
UDn9KA.png

$ 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:

UD3Ql8.png

ERROR Process failed: _posts/随机动漫图片api.md
YAMLException: end of the stream or a document separator is expected at line 2, column 5:
    tags:
        ^

解决

可能是缺少了必要的空格,和上面的解决一样

但是也可能是缺少必要的引号,比如''

UD3f1K.png

更多

官方问题解答:https://hexo.io/zh-cn/docs/troubleshooting.html


 目录