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 ...
随机推荐
- Mat::operator =
Provides matrix assignment operators. C++: Mat& Mat::operator=(const Mat& m) C++: Mat& M ...
- c++ simple class template example: Stack
main.cpp #include "Stack.h" #include <iostream> using namespace std; class Box { pub ...
- eclipse中使用jetty启动项目
eclipse里修改 Goals值 Tomcat -Dmaven.tomcat.port=8080 tomcat:run Jetty -Djetty.port=8081 jetty:run
- js 简单的样式封装
<script> function test(value){ var str=value; document.write("<div style=\"width: ...
- 2015-2016ACM-ICPC NEER northern-subregional-contest C Concatenation
可以在这里提交: http://codeforces.com/gym/100801 题目大意: 给出两个由小写字母组成的字符串S,T,从S中取一个非空前缀,从T中取一个非空后缀,拼接成一个新的字符串. ...
- Error:指向绑定函数的指针只能用于调用函数
a1.determinant; 改为: a1.determinant(); Eigen::MatrixXd a1(,);//ImagePoint a1<<n1,p1,n2,p2; doub ...
- Windows中安装Scrapy
在linux中安装Scrapy只需要导入一些非python的支持包,在windows中安装Scrapy则是一波三折. 总之来说,主要分为以下几个步骤,可能由于系统问题(国内个人机子,甚至是小企业的机子 ...
- 控制器post参数接收
一.post对象 1.后台c# public class TestController : ApiController { [HttpPost] public string SaveData1(Tb_ ...
- 使用EasyNVR无插件流媒体服务器接口和EasyPlayer.js播放器插件实现web网页H5播放无插件
1.背景需求 很多客户在使用EasyNVR无插件流媒体服务器时,不喜欢产品化的界面,有时可能满足不了日常观看使用的需求.因此软件提供丰富的HTTP接口,供第三方平台调用集成.但是有时客户这边可能没有专 ...
- Java死锁的理解
我们有时候操作数据库的时候会遇到死锁,那么什么使死锁呢?它的一个比较官方的定义就是:死锁是指两个或两个以上的进程在执行过程中,由于竞争资源或者由于彼此通信而造成的一种阻塞的现象,若无外力作用,它们都将 ...