使用hexo s或hexo g终端命令是报错ERROR Process failed: _posts/name.md,如下图
192:my_hexo ******$ hexo s
INFO Start processing
ERROR Process failed: _posts/name.md
YAMLException: incomplete explicit mapping pair; a key node is missed at line 1, column 23:
title: ssh无法连接 WARNING: REMOTE HOST IDENTIFICATION HAS ...
^
at generateError (/Users/weizhongming/Desktop/my_hexo/node_modules/js-yaml/lib/js-yaml/loader.js:162:10)
at throwError (/Users/weizhongming/Desktop/my_hexo/node_modules/js-yaml/lib/js-yaml/loader.js:168:9)
这个报错已经给了提示,在name.md
文件的第一行有错误,基本是md
语法错误。比如上图的报错是因为在title:
的后面写的文章title
里有:
,所以报错
网友评论