V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jackandtom
V2EX  ›  问与答

小弟 hexo 在 deploy 时发生错误,求解答,万分感谢!!!(冒号后的空格检查过, deploy 的 type 改成 git 也试过)

  •  
  •   jackandtom · 2015-09-10 21:06:47 +08:00 · 10413 次点击
    这是一个创建于 3363 天前的主题,其中的信息可能已经有所发展或是发生改变。

    D:\hexo> hexo g

    FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/do
    cs/troubleshooting.html
    YAMLException: bad indentation of a mapping entry at line 70, column 2:
    deploy:
    ^
    at generateError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml
    \loader.js:160:10 )
    at throwError (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\lo
    ader.js:166:9 )
    at readBlockMapping (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-y
    aml\loader.js:1061:7 )
    at composeNode (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\l
    oader.js:1315:12 )
    at readDocument (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\
    loader.js:1478:3 )
    at loadDocuments (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml
    \loader.js:1538:5 )
    at Object.load (D:\hexo\node_modules\hexo\node_modules\js-yaml\lib\js-yaml\l
    oader.js:1555:19 )
    at Hexo.yamlHelper (D:\hexo\node_modules\hexo\lib\plugins\renderer\yaml.js:7
    :15 )
    at Hexo.tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main\
    util.js:26:23 )
    at Hexo.<anonymous> (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main
    \method.js:15:34 )
    at D:\hexo\node_modules\hexo\lib\hexo\render.js:51:21
    at tryCatcher (D:\hexo\node_modules\hexo\node_modules\bluebird\js\main\util.
    js:26:23 )
    at Promise._settlePromiseFromHandler (D:\hexo\node_modules\hexo\node_modules
    \bluebird\js\main\promise.js:503:31 )
    at Promise._settlePromiseAt (D:\hexo\node_modules\hexo\node_modules\bluebird
    \js\main\promise.js:577:18 )
    at Promise._settlePromises (D:\hexo\node_modules\hexo\node_modules\bluebird\
    js\main\promise.js:693:14 )
    at Async._drainQueue (D:\hexo\node_modules\hexo\node_modules\bluebird\js\mai
    n\async.js:123:16 )
    at Async._drainQueues (D:\hexo\node_modules\hexo\node_modules\bluebird\js\ma
    in\async.js:133:10 )
    at Async.drainQueues (D:\hexo\node_modules\hexo\node_modules\bluebird\js\mai
    n\async.js:15:14 )
    at process._tickCallback (node.js:415:13 )

    第 1 条附言  ·  2015-09-11 15:42:39 +08:00
    _config.yml 配置文件内容如下

    # Deployment
    ## Docs: http://hexo.io/docs/deployment.html
    deploy:
    type: git
    repository: https://github.com/****/*****.github.com.git
    branch: master
    6 条回复    2016-07-04 23:30:30 +08:00
    twoyuan
        1
    twoyuan  
       2015-09-10 23:23:15 +08:00
    先贴 _config.yml 吧
    cielpy
        2
    cielpy  
       2015-09-11 09:38:28 +08:00   ❤️ 1
    YAMLException: bad indentation of a mapping entry at line 70, column 2:
    这一行是什么。
    jackandtom
        3
    jackandtom  
    OP
       2015-09-11 15:44:07 +08:00
    @twoyuan 已贴,谢谢提醒
    jackandtom
        4
    jackandtom  
    OP
       2015-09-11 15:57:03 +08:00
    @cielpy 好像是说这有个错误
    jackandtom
        5
    jackandtom  
    OP
       2015-09-11 15:57:37 +08:00
    @cielpy 哦哦,谢谢提醒,原来是多了个空格,已经解决了
    sophil
        6
    sophil  
       2016-07-04 23:30:30 +08:00
    忒感谢了,,找了半天, 才发现多了个空格
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5578 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:21 · PVG 17:21 · LAX 01:21 · JFK 04:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.