V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
echopan
V2EX  ›  Node.js

关于安装 hexo 结束后,敲命令 hexo server 出现错误怎么解决?

  •  
  •   echopan · 2014-12-14 14:29:53 +08:00 · 6776 次点击
    这是一个创建于 3631 天前的主题,其中的信息可能已经有所发展或是发生改变。
    下面输入的信息是我的
    出现的错误如下:
    [error] { name: 'HexoError',
    reason: 'can not read a block mapping entry; a multiline key may not be an implicit key',
    mark:
    { name: null,
    buffer: '# Hexo Configuration\n## Docs: http://hexo.io/docs/configuration.html\n## Source: https://github.com/hexojs/hexo/\n\n# Site\ntitle: hexo\nsubtitle:angel beats!\ndescription:\nauthor: echopan\nemail:[email protected]\nlanguage:zh-CN\n# URL\n## If your site is put in a subdirectory, set url as \'http://hexo.freedom.moe/\' and root as \'home/hexo.freedom.moe/\n\'\nurl: http://hexo.freedom.moe\nroot: /home/hexo.freedom.moe/\npermalink: :year/:month/:day/:title/\ntag_dir: tags\narchive_dir: archives\ncategory_dir: categories\ncode_dir: downloads/code\npermalink_defaults:\n\n# Directory\nsource_dir: source\npublic_dir: public\n\n# Writing\nnew_post_name: :title.md # File name of new posts\ndefault_layout: post\ntitlecase: false # Transform title into titlecase\nexternal_link: true # Open external links in new tab\nfilename_case: 0\nrender_drafts: false\npost_asset_folder: false\nrelative_link: false\nhighlight:\n enable: true\n line_number: true\n tab_replace:\n\n# Category & Tag\ndefault_category: uncategorized\ncategory_map:\ntag_map:\n\n# Archives\n## 2: Enable pagination\n## 1: Disable pagination\n## 0: Fully Disable\narchive: 2\ncategory: 2\ntag: 2\n\n# Server\n## Hexo uses Connect as a server\n## You can customize the logger format as defined in\n## http://www.senchalabs.org/connect/logger.html\nport: 4000\nserver_ip: localhost\nlogger: false\nlogger_format: dev\n\n# Date / Time format\n## Hexo uses Moment.js to parse and display date\n## You can customize the date format as defined in\n## http://momentjs.com/docs/#/displaying/format/\ndate_format: MMM D YYYY\ntime_format: H:mm:ss\n\n# Pagination\n## Set per_page to 0 to disable pagination\nper_page: 10\npagination_dir: page\n\n# Disqus\ndisqus_shortname:\n\n# Extensions\n## Plugins: https://github.com/hexojs/hexo/wiki/Plugins\n## Themes: https://github.com/hexojs/hexo/wiki/Themes\ntheme: landscape\nexclude_generator:\n\n# Deployment\n## Docs: http://hexo.io/docs/deployment.html\ndeploy:\n type:\n\u0000',
    position: 165,
    line: 7,
    column: 11 },
    message: 'Config file load failed',
    domain:
    { domain: null,
    _events: { error: [Function] },
    _maxListeners: 10,
    members: [ [Object] ] },
    domainThrown: true,
    stack: undefined }
    这怎么解决?
    少了什么细节?
    1 条回复    2014-12-18 13:58:06 +08:00
    abuuu
        1
    abuuu  
       2014-12-18 13:58:06 +08:00   ❤️ 1
    看起来是你的yml文件格式问题,你自己检查一下是不是 冒号后面没有写空格?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1130 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 18:38 · PVG 02:38 · LAX 10:38 · JFK 13:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.