前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulate

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

作者头像
IT云清
发布2020-02-14 15:49:41
1.5K0
发布2020-02-14 15:49:41
举报
文章被收录于专栏:IT云清

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

代码语言:javascript
复制
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/01/30 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档