本地执行hexo s 时报错:

WARN No layout: index.html

原因:theme 没有下载下来,经查,theme文件夹下为空。


新建文章后,执行 hexo g 时报如下错误:

    (node:1172) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
INFO Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 21, Column 171]
Error: Unable to call `now`, which is undefined or falsey
at Object.exports.prettifyError (E:\sharpcj_web\node_modules\_nunjucks@2.5.2@nunjucks\src\lib.js:34:15)
at E:\sharpcj_web\node_modules\_nunjucks@2.5.2@nunjucks\src\environment.js:486:31
at new_cls.root [as rootRenderFunc] (eval at _compile (E:\sharpcj_web\node_modules\_nunjucks@2.5.2@nunjucks\src\environment.js:565:24), <anonymous>:18:3)
at new_cls.render (E:\sharpcj_web\node_modules\_nunjucks@2.5.2@nunjucks\src\environment.js:479:15)
at new_cls.renderString (E:\sharpcj_web\node_modules\_nunjucks@2.5.2@nunjucks\src\environment.js:327:21)
at E:\sharpcj_web\node_modules\_hexo@3.3.7@hexo\lib\extend\tag.js:66:9
at Promise._execute (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\debuggability.js:300:9)
at Promise._resolveFromExecutor (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:483:18)
at new Promise (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:79:10)
at Tag.render (E:\sharpcj_web\node_modules\_hexo@3.3.7@hexo\lib\extend\tag.js:64:10)
at Object.tagFilter [as onRenderEnd] (E:\sharpcj_web\node_modules\_hexo@3.3.7@hexo\lib\hexo\post.js:253:16)
at E:\sharpcj_web\node_modules\_hexo@3.3.7@hexo\lib\hexo\render.js:65:19
at tryCatcher (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\promise.js:693:18)
at Async._drainQueue (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\async.js:133:16)
at Async._drainQueues (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (E:\sharpcj_web\node_modules\_bluebird@3.5.0@bluebird\js\release\async.js:17:14)
at runCallback (timers.js:800:20)
at tryOnImmediate (timers.js:762:5)

原因: 文章中有不识别的字符:

原文内容中

参考 https://segmentfault.com/q/1010000006685011

Hexo 使用中搭建博客过程中遇到的坑的更多相关文章

  1. hexo+github搭建博客跳坑

    hexo+GitHub搭建博客过程中,hexo安装成功,可以启动和运行,但是访问localhost:4000却无法访问,弄了半天,最后发现是福昕阅读器占用了4000端口 解决办法: 采用命令hexo ...

  2. 在Windows下使用Hexo+GithubPage搭建博客的过程

    1.安装Node.js 下载地址:传送门 去 node.js 官网下载相应版本,进行安装即可. 可以通过node -v的命令来测试NodeJS是否安装成功 2.安装Git 下载地址:传送门 去 Git ...

  3. Hexo快速搭建博客

    1. 准备工作 ~ 安装node.js -> npm -> hexo-cli ~ 安装git -> 版本控制工具 2. 更换npm(nodejs package manager)源 ...

  4. Hexo+NexT(零):最全Hexo+Next搭建博客教程

    快速.简洁且高效的博客框架 有位大神说,喜欢写博客的人的人,折腾博客会经历三个阶段.找到一个免费空间,搭建一个博客,很欣喜,很有成就感,此为一阶段:受限免费空间各种限制,自己买空间和域名,实现对博客的 ...

  5. GitHub+Hexo+gulp搭建博客网站

    一.前期准备 1.注册GitHub账号. 不做说明 2.创建仓库 创建一个新的仓库来放置我们的文件. 3.下载安装Node.js https://nodejs.org/en/   两个版本,选择右边那 ...

  6. hexo + next搭建博客

    使用hexo和next主题搭建GitHub博客 安装node.js 在node.js 官网下载, 相应系统位数的软件包. 可以选择LTS长期支持版, 或者Current当前版本. 我这里选择的是Win ...

  7. 使用coding和hexo快速搭建博客

    欢迎访问我的个人博客皮皮猪:http://www.zhsh666.xyz 今天教大家怎么用hexo快速搭建自己的博客.我不是专业人士,不懂前端知识,所以我十分讨厌那些专业术语,讲了一大堆,对于技术小白 ...

  8. hexo+github搭建博客(超级详细版,精细入微)

    # 前言 你了解[Hexo]( https://hexo.io/zh-cn/ "Hexo官网")吗? Hexo是一个静态博客框架,基于Node.js,将Markdown文章通过渲染 ...

  9. 使用hexo+github搭建博客

    https://blog.csdn.net/qq_36667170/article/details/105789610这一篇已经写得很详细了,下面的内容是我操作的时候遇到的问题及解决方法. 1.下载N ...

随机推荐

  1. mysql数据库记录

    ON DELETE restrict(约束):当在父表(即外键的来源表)中删除对应记录时,首先检查该记录是否有对应外键,如果有则不允许删除. no action:意思同restrict.即如果存在从数 ...

  2. Yarn源码分析之参数mapreduce.job.reduce.slowstart.completedmaps介绍

    mapreduce.job.reduce.slowstart.completedmaps是MapReduce编程模型中的一个参数,这个参数的含义是,当Map Task完成的比例达到该值后才会为Redu ...

  3. Help Tomisu UVA - 11440 难推导+欧拉函数,给定正整数N和M, 统计2和N!之间有多少个整数x满足,x的所有素因子都大于M (2<=N<=1e7, 1<=M<=N, N-M<=1E5) 输出答案除以1e8+7的余数。

    /** 题目:Help Tomisu UVA - 11440 链接:https://vjudge.net/problem/UVA-11440 题意:给定正整数N和M, 统计2和N!之间有多少个整数x满 ...

  4. Ubuntu17.10 Install Docker-ce

    官网目前的安装步骤在最新版本的Ubuntu17.10 上会提示没有安装源,下面是针对17.10 安装步骤: 参考资料 sudo apt-get update sudo apt-get install ...

  5. Ultra-QuickSort - poj 2299 (归并排序+统计逆序数)

    利用归并排序统计逆序数,利用归并求逆序在对子序列s1和s2在归并时(s1,s2已经排好序),若s1[i]>s2[j](逆序状况),则逆序数加上s1.length-i,因为s1中i后面的数字对于s ...

  6. 第二百节,jQuery EasyUI,Tabs(选项卡)组件

    jQuery EasyUI,Tabs(选项卡)组件 学习要点: 1.加载方式 2.属性列表 3.事件列表 4.方法列表 5.选项卡面板 本节课重点了解 EasyUI 中 Tabs(选项卡)组件的使用方 ...

  7. sqoop-1.4.4安装配置

    环境:redhat6.5 hadoop2.4.1 感谢: http://wenku.baidu.com/view/a9083da8dd3383c4bb4cd274.html注释hbase检查 感谢: ...

  8. chrome 设置代理服务器

    通过设置google chrome浏览器的代理服务器可以让google chrome浏览器通过代理服务器上网,可以隐藏本机的IP地址或者访问一些不能直接访问的网站. 工具/原料   google ch ...

  9. CImg的使用,入门

    CImg的使用: const char *imageIN="image.jpg" const char *imageOUT="imgeout.jpg" CImg ...

  10. 第1周---python网络爬虫规则

    第一节:requests库入门 第二节:网络爬虫的"盗亦有道" 第三节:requests库的网络爬虫实例