YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulate

使用hexo g出现如下错误,一顿排查,发现,是文章的文件名和文章的title有非法字符,原title为:ssh: connect to host github.com port 22: Connection timed out。

解决方案:修改名称即可。也可能是文章内部的标题,分类,目录等等有非法字符。
G:\blog> hexo g
INFO  Start processing
ERROR Process failed: _posts/ssh: connect to host github.com port 22: Connection timed out .md
YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 42:
     ... nnect to host github.com port 22: Connection timed out fatal: Co ...
                                         ^
    at generateError (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:167:10)
    at throwError (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:173:9)
    at readBlockMapping (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1027:9)
    at composeNode (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1359:12)
    at readDocument (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1519:3)
    at loadDocuments (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1575:5)
    at Object.load (G:\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1596:19)
    at parseYAML (G:\blog\node_modules\hexo-front-matter\lib\front_matter.js:80:21)
    at parse (G:\blog\node_modules\hexo-front-matter\lib\front_matter.js:56:12)
    at Promise.all.spread (G:\blog\node_modules\hexo\lib\plugins\processor\post.js:48:20)
    at tryCatcher (G:\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (G:\blog\node_modules\bluebird\js\release\promise.js:514:35)
    at Promise._settlePromise (G:\blog\node_modules\bluebird\js\release\promise.js:574:18)
    at Promise._settlePromise0 (G:\blog\node_modules\bluebird\js\release\promise.js:619:10)
    at Promise._settlePromises (G:\blog\node_modules\bluebird\js\release\promise.js:699:18)
    at Promise._fulfill (G:\blog\node_modules\bluebird\js\release\promise.js:643:18)
    at PromiseArray._resolve (G:\blog\node_modules\bluebird\js\release\promise_array.js:126:19)
    at PromiseArray._promiseFulfilled (G:\blog\node_modules\bluebird\js\release\promise_array.js:144:14)
    at PromiseArray._iterate (G:\blog\node_modules\bluebird\js\release\promise_array.js:114:31)
    at PromiseArray.init [as _init] (G:\blog\node_modules\bluebird\js\release\promise_array.js:78:10)
    at Promise._settlePromise (G:\blog\node_modules\bluebird\js\release\promise.js:571:21)
    at Promise._settlePromise0 (G:\blog\node_modules\bluebird\js\release\promise.js:619:10)
INFO  Files loaded in 328 ms
INFO  0 files generated in 1.47 s
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 鲸 设计师:meimeiellie 返回首页