Hexo 使用中搭建博客过程中遇到的坑
本地执行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 使用中搭建博客过程中遇到的坑的更多相关文章
- hexo+github搭建博客跳坑
hexo+GitHub搭建博客过程中,hexo安装成功,可以启动和运行,但是访问localhost:4000却无法访问,弄了半天,最后发现是福昕阅读器占用了4000端口 解决办法: 采用命令hexo ...
- 在Windows下使用Hexo+GithubPage搭建博客的过程
1.安装Node.js 下载地址:传送门 去 node.js 官网下载相应版本,进行安装即可. 可以通过node -v的命令来测试NodeJS是否安装成功 2.安装Git 下载地址:传送门 去 Git ...
- Hexo快速搭建博客
1. 准备工作 ~ 安装node.js -> npm -> hexo-cli ~ 安装git -> 版本控制工具 2. 更换npm(nodejs package manager)源 ...
- Hexo+NexT(零):最全Hexo+Next搭建博客教程
快速.简洁且高效的博客框架 有位大神说,喜欢写博客的人的人,折腾博客会经历三个阶段.找到一个免费空间,搭建一个博客,很欣喜,很有成就感,此为一阶段:受限免费空间各种限制,自己买空间和域名,实现对博客的 ...
- GitHub+Hexo+gulp搭建博客网站
一.前期准备 1.注册GitHub账号. 不做说明 2.创建仓库 创建一个新的仓库来放置我们的文件. 3.下载安装Node.js https://nodejs.org/en/ 两个版本,选择右边那 ...
- hexo + next搭建博客
使用hexo和next主题搭建GitHub博客 安装node.js 在node.js 官网下载, 相应系统位数的软件包. 可以选择LTS长期支持版, 或者Current当前版本. 我这里选择的是Win ...
- 使用coding和hexo快速搭建博客
欢迎访问我的个人博客皮皮猪:http://www.zhsh666.xyz 今天教大家怎么用hexo快速搭建自己的博客.我不是专业人士,不懂前端知识,所以我十分讨厌那些专业术语,讲了一大堆,对于技术小白 ...
- hexo+github搭建博客(超级详细版,精细入微)
# 前言 你了解[Hexo]( https://hexo.io/zh-cn/ "Hexo官网")吗? Hexo是一个静态博客框架,基于Node.js,将Markdown文章通过渲染 ...
- 使用hexo+github搭建博客
https://blog.csdn.net/qq_36667170/article/details/105789610这一篇已经写得很详细了,下面的内容是我操作的时候遇到的问题及解决方法. 1.下载N ...
随机推荐
- nginx源码学习_数据结构(ngx_pool_t)
nginx中关于ngx_pool_t的数据结构位于src/core/ngx_palloc.c和src/core/ngx_palloc.h中,该数据结构主要是和内存池相关的,写下这篇博客前参考了网上很多 ...
- char device
/** * alloc_chrdev_region() - register a range of char device numbers * @dev: output parameter for f ...
- 验证用户名,密码,验证码,发送alax请求进行登录代码
//html代码 <div class="layui-form" id="larry_form"> <div class="layu ...
- docker下部署spring boot
第 5 章 Docker + Spring Boot: 快速搭建和部署Java Web应用 0.你需要: JDK 1.8 : java -version Maven 3.0+ : mvn -v Git ...
- js或jquery实现页面打印(局部打印)
首先定义css样式: 复制代码代码如下: @media print { .noprint { display: none;color:green } } 对于不想打印的内容只用在标签中加上 cla ...
- IDEA15入门常用设置
打开IDEA设置的快捷键:Ctrl + Alt + S 打开选中的项目属性快捷键:Shift + Ctrl + Alt + S 1.IDEA默认不会使用我们独立安装的Maven配置,需要手动设置,并且 ...
- CentOS 6.5 安装Gitlab 7.12.2
官网环境要求 参见:https://github.com/gitlabhq/gitlabhq GitLab is a Ruby on Rails application that runs on th ...
- LibShortText 怎么处理中文文档
LibShortText 是林智仁老师继 libsvm.liblinear 之后的另一力作,主要有几大特征: It is more efficient than general text-mining ...
- C++STL容器(lower_bound,upper_bound)
C++STL容器中有三种二分查找函数,这里分享其中的两个 这两个函数其实都可以理解为不破坏数组次序的前期下能将目标元素插入到数组的第几个位置,不过在细节上两个函数有所差异 int d[6]={0,2, ...
- 从网上搜索到的一些关于pcap源代码,入门级的
/*pcap_1.c*/ #include <stdio.h>#include <stdlib.h>#include <pcap.h> /* 如果没有pcap的系 ...