V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jackandtom
V2EX  ›  问与答

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

  •  
  •   jackandtom · Sep 10, 2015 · 10996 views
    This topic created in 3894 days ago, the information mentioned may be changed or developed.

    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 )

    Supplement 1  ·  Sep 11, 2015
    _config.yml 配置文件内容如下

    # Deployment
    ## Docs: http://hexo.io/docs/deployment.html
    deploy:
    type: git
    repository: https://github.com/****/*****.github.com.git
    branch: master
    6 replies    2016-07-04 23:30:30 +08:00
    twoyuan
        1
    twoyuan  
       Sep 10, 2015
    先贴 _config.yml 吧
    cielpy
        2
    cielpy  
       Sep 11, 2015   ❤️ 1
    YAMLException: bad indentation of a mapping entry at line 70, column 2:
    这一行是什么。
    jackandtom
        3
    jackandtom  
    OP
       Sep 11, 2015
    @twoyuan 已贴,谢谢提醒
    jackandtom
        4
    jackandtom  
    OP
       Sep 11, 2015
    @cielpy 好像是说这有个错误
    jackandtom
        5
    jackandtom  
    OP
       Sep 11, 2015
    @cielpy 哦哦,谢谢提醒,原来是多了个空格,已经解决了
    sophil
        6
    sophil  
       Jul 4, 2016
    忒感谢了,,找了半天, 才发现多了个空格
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2754 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 15:35 · PVG 23:35 · LAX 08:35 · JFK 11:35
    ♥ Do have faith in what you're doing.