zoukankan      html  css  js  c++  java
  • hexo 报错 Cannot read property 'replace' of null

    详细错误信息:

    FATAL Cannot read property 'replace' of null
    TypeError: Cannot read property 'replace' of null
        at fs.exists.then.then.then.config (E:Hexo
    ode_moduleshexolibhexoload_config.js:34:31)
        at tryCatcher (E:Hexo
    ode_modulesluebirdjs
    eleaseutil.js:16:23)
        at Promise._settlePromiseFromHandler (E:Hexo
    ode_modulesluebirdjs
    eleasepromise.js:512:31)
        at Promise._settlePromise (E:Hexo
    ode_modulesluebirdjs
    eleasepromise.js:569:18)
        at Promise._settlePromise0 (E:Hexo
    ode_modulesluebirdjs
    eleasepromise.js:614:10)
        at Promise._settlePromises (E:Hexo
    ode_modulesluebirdjs
    eleasepromise.js:694:18)
        at _drainQueueStep (E:Hexo
    ode_modulesluebirdjs
    eleaseasync.js:138:12)
        at _drainQueue (E:Hexo
    ode_modulesluebirdjs
    eleaseasync.js:131:9)
        at Async._drainQueues (E:Hexo
    ode_modulesluebirdjs
    eleaseasync.js:147:5)
        at Immediate.Async.drainQueues (E:Hexo
    ode_modulesluebirdjs
    eleaseasync.js:17:14)
        at runCallback (timers.js:810:20)
        at tryOnImmediate (timers.js:768:5)
        at processImmediate [as _immediateCallback] (timers.js:745:5)

    关键信息: Cannot read property ‘replace’ of null

    问题原因:
    我为了将我的wiki链接到hexo修改了root路径,如下图所示:

    解决办法(将root改为原来的/即可解决这个问题):

    这个/相当于默认指向developers-youcong.github.io

    参考解决办法:
    hexo 报错 Cannot read property ‘replace’ of null

  • 相关阅读:
    LeetCode Power of Three
    LeetCode Nim Game
    LeetCode,ugly number
    LeetCode Binary Tree Paths
    LeetCode Word Pattern
    LeetCode Bulls and Cows
    LeeCode Odd Even Linked List
    LeetCode twoSum
    549. Binary Tree Longest Consecutive Sequence II
    113. Path Sum II
  • 原文地址:https://www.cnblogs.com/youcong/p/10786343.html
Copyright © 2011-2022 走看看