当配置玩_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
//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的更多相关文章

  1. FATAL bad indentation of a mapping entry at line 83, column 3: branch: master 已解决;

    部署hexo 时候,修改完_config.yml  文件后更新报错如下,问题解决: FATAL bad indentation of a mapping entry at line 83, colum ...

  2. 【原】Github+Hexo+NextT搭建个人博客

    摘要 GitHub 是一个开源项目的托管网站,相信很多人都听过.在上面有很多高质量的项目代码,我们也可以把自己的项目代码托管到GitHub,与朋友们共享交流.GitHub Pages 是Github为 ...

  3. GitHub+hexo to Blog

    title: GitHub+hexo to Blog date: 2014-12-26 09:44:53 tags: hexo, github --- 摘要 一直想要一个自己的博客,不过一直怯于对网站 ...

  4. Github+Hexo搭建静态博客

    开始 在安装hexo之前,必须确认你已经安装了Node.js和Git,并且注册了一个Github账号. 1.创建Github仓库 1) 仓库名为xxx.github.io 创建一个以"用户名 ...

  5. Github+Hexo,搭建专有博客

    前言 记得从大二开始,就一直想搭个专属网站,当时使劲抠页面[前端页面是从QQ空间抠的,现在想抠估计没这么容易了],写代码,忙活半天才把程序弄好. 可惜最终项目还是没上线,因为当时有两问题绕不开 需要购 ...

  6. Github+Hexo,搭建专属网站

    前言 记得从大二开始,就一直想搭个专属网站,当时使劲抠页面[前端页面是从QQ空间抠的,现在想抠估计没这么容易了],写代码,忙活半天才把程序弄好. 可惜最终项目还是没上线,因为当时有两问题绕不开 需要购 ...

  7. github+hexo搭建自己的博客网站(六)进阶配置(搜索引擎收录,优化你的url)

    详细的可以查看hexo博客的演示:https://saucxs.github.io/ 绑定了域名: http://www.chengxinsong.cn hexo+github博客网站源码(可以clo ...

  8. github+hexo搭建自己的博客网站(七)注意事项(避免read.me,CNAME文件的覆盖,手动改github page的域名)

    详细的可以查看hexo博客的演示:https://saucxs.github.io/ 绑定域名可以查看:http://www.chengxinsong.cn 可以查看在github上生成的静态文件(如 ...

  9. 使用GitHub+hexo搭建个人独立博客

    前言 使用github pages服务搭建博客的好处有: 全是静态文件,访问速度快: 免费方便,不用花一分钱就可以搭建一个自由的个人博客,不需要服务器不需要后台: 可以随意绑定自己的域名,不仔细看的话 ...

随机推荐

  1. while应用和函数学习

    # ******************************练习****************************# 在控制台中获取两个整数,作为循环开始和结束的点'''a = int(in ...

  2. 细说shiro之五:在spring框架中集成shiro

    官网:https://shiro.apache.org/ 1. 下载在Maven项目中的依赖配置如下: <!-- shiro配置 --> <dependency> <gr ...

  3. Vertica系列:性能优化

    Vertica 性能非常好, 平时基本不会碰到性能问题, 即使碰到, 优化也很容易, 而且效果往往会很好. ======================优化工具==================== ...

  4. Android弹出窗口

    protected void PopUp() { final PopupWindow popup = new PopupWindow(TestActivity.this); View popView ...

  5. Javaweb学习笔记——(十三)——————JSTL、JSTL核心标签库、自定义标签、有标签体的标签、带有属性的标签、MVC、Javaweb三层框架

    JSTLApache提供的标签库 jar包:jstl-1.2.jar,如果传MyEclipse,他会在我们导入jar包,无需自己导入,如果没有使用MyEclipse那么需要自行导入.--------- ...

  6. Web Of Science

  7. ansible学习笔记一

    ansible学习笔记一 参考博客: ansible学习 - 51CTO博客 一.安装 1 .下载epel源 wget -O /etc/yum.repos.d/epel.repo http://mir ...

  8. span i s等行内元素标签之间出现奇怪空格符号

    上述展开信息本来是这样写的,但是很奇怪windows下的测试环境支付时间前面莫名其妙多了个小方框 <p> <span><i>收货人:</i>{remar ...

  9. 第26月第28天 avplayer cache

    1.urlsession https - (void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticati ...

  10. 【tmos】如何在Interceptor拦截器中注入其他数据

    光是这样是获取不到weixinConfig内容的 public class WebLoginInterceptor implements HandlerInterceptor { @Autowired ...