码迷,mamicode.com
首页 > 移动开发 > 详细

Github+HEXO FATAL bad indentation of a mapping entry at line 84

时间:2018-12-25 17:00:30      阅读:486      评论:0      收藏:0      [点我收藏+]

标签:set   yam   eth   render   fat   callback   ast   ppi   method   

当配置玩_config.yml文件时,执行hexo g -d时出现错误如下:

$ hexo g -d
FATAL can not read a block mapping entry; a multiline key may not be an implicit key at line 84, column 1:

    ^
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 84, column 1:

    ^
    at generateError (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:165:10)
    at throwError (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:171:9)
    at readBlockMapping (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1046:9)
    at composeNode (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1332:12)
    at readDocument (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1492:3)
    at loadDocuments (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1548:5)
    at Object.load (E:\work\learn\blog\node_modules\js-yaml\lib\js-yaml\loader.js:1569:19)
    at Hexo.yamlHelper (E:\work\learn\blog\node_modules\hexo\lib\plugins\renderer\yaml.js:7:15)
    at Hexo.tryCatcher (E:\work\learn\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (E:\work\learn\blog\node_modules\bluebird\js\release\method.js:15:34)
    at Promise.then.text (E:\work\learn\blog\node_modules\hexo\lib\hexo\render.js:61:21)
    at tryCatcher (E:\work\learn\blog\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (E:\work\learn\blog\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (E:\work\learn\blog\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromise0 (E:\work\learn\blog\node_modules\bluebird\js\release\promise.js:614:10)
    at Promise._settlePromises (E:\work\learn\blog\node_modules\bluebird\js\release\promise.js:694:18)
    at _drainQueueStep (E:\work\learn\blog\node_modules\bluebird\js\release\async.js:138:12)
    at _drainQueue (E:\work\learn\blog\node_modules\bluebird\js\release\async.js:131:9)
    at Async._drainQueues (E:\work\learn\blog\node_modules\bluebird\js\release\async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (E:\work\learn\blog\node_modules\bluebird\js\release\async.js:17:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)

原因在于:

//wrong 
deploy:
type:git
repo:git@github.com:xxx/xxx.github.io.git
branch:master
//right,需要缩进格式
deploy:
 type:git
 repo:git@github.com:xxx/xxx.github.io.git
 branch:master

  

  

Github+HEXO FATAL bad indentation of a mapping entry at line 84

标签:set   yam   eth   render   fat   callback   ast   ppi   method   

原文地址:https://www.cnblogs.com/fanbi/p/10174558.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!