zoukankan      html  css  js  c++  java
  • 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
    ode_modules\_nunjucks@2.5.2@nunjuckssrclib.js:34:15)
            at E:sharpcj_web
    ode_modules\_nunjucks@2.5.2@nunjuckssrcenvironment.js:486:31
            at new_cls.root [as rootRenderFunc] (eval at _compile (E:sharpcj_web
    ode_modules\_nunjucks@2.5.2@nunjuckssrcenvironment.js:565:24),                         <anonymous>:18:3)
            at new_cls.render (E:sharpcj_web
    ode_modules\_nunjucks@2.5.2@nunjuckssrcenvironment.js:479:15)
            at new_cls.renderString (E:sharpcj_web
    ode_modules\_nunjucks@2.5.2@nunjuckssrcenvironment.js:327:21)
            at E:sharpcj_web
    ode_modules\_hexo@3.3.7@hexolibextend	ag.js:66:9
            at Promise._execute (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasedebuggability.js:300:9)
            at Promise._resolveFromExecutor (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:483:18)
            at new Promise (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:79:10)
            at Tag.render (E:sharpcj_web
    ode_modules\_hexo@3.3.7@hexolibextend	ag.js:64:10)
            at Object.tagFilter [as onRenderEnd] (E:sharpcj_web
    ode_modules\_hexo@3.3.7@hexolibhexopost.js:253:16)
            at E:sharpcj_web
    ode_modules\_hexo@3.3.7@hexolibhexo
    ender.js:65:19
            at tryCatcher (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleaseutil.js:16:23)
            at Promise._settlePromiseFromHandler (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:512:31)
            at Promise._settlePromise (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:569:18)
            at Promise._settlePromise0 (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:614:10)
            at Promise._settlePromises (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleasepromise.js:693:18)
            at Async._drainQueue (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleaseasync.js:133:16)
            at Async._drainQueues (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleaseasync.js:143:10)
            at Immediate.Async.drainQueues [as _onImmediate] (E:sharpcj_web
    ode_modules\_bluebird@3.5.0@bluebirdjs
    eleaseasync.js:17:14)
            at runCallback (timers.js:800:20)
            at tryOnImmediate (timers.js:762:5)      
    

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

    错误内容

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

  • 相关阅读:
    Java时间和时间戳的相互转换
    linux 通过pid 寻找程序路径的最简单命令(pwdx)
    Oracle--存储过程学习进阶
    经典sql总结(2)
    经典sql总结(1)
    类的初始化
    StringBuffer和String 的例子
    i=i++
    一个异常学习的好例子
    有空研究这篇http://blog.csdn.net/studyvcmfc/article/details/7720258 研究后写篇记录
  • 原文地址:https://www.cnblogs.com/joy99/p/6985982.html
Copyright © 2011-2022 走看看