本地执行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. sql server 数据库基础知识(一)

    主键(PrimaryKey):主键就是一个表中每个数据行的唯一标识.不会有重复值的列才能当主键.一个表可以没有主键,但是会非常难以处理,因此没有特殊理由表都要设定主键.SQLServer中生成GUID ...

  2. ThreadLocal使用方法

      创建一个Bean,通过不同的线程对象设置Bean属性,保证各个线程Bean对象的独立性.   /**  * Created by IntelliJ IDEA.  * User: leizhimin ...

  3. iOS视频压缩存储至本地并上传至服务器

    最近做了一个项目,我把其中的核心功能拿出来和大家分享一下,重点还是自己梳理一下. 这里关于视频转码存储我整理了两个方法,这两个方法都是针对相册内视频进行处理的. 1.该方法没有对视频进行压缩,只是将视 ...

  4. Java获取系统安装软件列表

    /** * @author <a href="mailto:foohsinglong@gmail.com">kevin.long</a> * @descri ...

  5. 虚机下Ubuntu与Win7文件共享

    使用Samba服务实现虚机与本机的文件共享,简单的分为以下几个步骤,按部就班,so easy 1.安装smb sudo apt-get install samba sudo apt-get insta ...

  6. constructors and destructors

    A constructor is a method that gets called immediately when an object is allocated (on the stack or ...

  7. Redis Scan的使用方式以及Spring redis的坑

    SpringRedisTemplate针对这个Scan进行了封装,示例使用(针对最新库spring-data-redis-1.8.1.RELEASE): Set<Object> execu ...

  8. Android中*_handle_t/ANativeWindowBuffer/ANativeWindow/GraphicBuffer/Surface的关系

    在阅读SurfaceFlinger HardwareComposer以及gralloc相关代码的过程中,我们经常会遇到native_handle private_handle_t ANativeWin ...

  9. jq中prop和attr的区别以及各自的使用

    在高版本的jquery引入prop方法后,什么时候该用prop?什么时候用attr?它们两个之间有什么区别?这些问题就出现了. 关于它们两个的区别,网上的答案很多.这里谈谈我的心得,我的心得很简单: ...

  10. 10道mysql查询语句面试题

    1.https://www.yanxurui.cc/posts/mysql/10-sql-interview-questions/ 2.http://mm.fancymore.com/reading/ ...