昨天用hexo新建的博客本地和远程都没问题,今天想改进一下,结果打开git进入对应文件进行hexo s
命令报错了,如下代码:
FATAL Cannot read property 'replace ' of null
TypeError: Cannot read property 'replace' of null
at E:\Git\hexo\Hexo-blog\node_modules\hexo\lib\hexo\load_config.js:35:28
at tryCatcher (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\promise.js:510:31)
at Promise._settlePromise (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\promise.js:567:18)
at Promise._settlePromise0 (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\promise.js:612:10)
at Promise._settlePromises (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\promise.js:691:18)
at Async._drainQueue (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\async.js:138:16)
at Async._drainQueues (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\async.js:148:10)
at Immediate.Async.drainQueues [as _onImmediate] (E:\Git\hexo\Hexo-blog\node_modules\hexo\node_modules\bluebird\js\release\async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
接着我使用了hexo clean
等命令都出现如上的报错情况。请大神指点一二,谢谢!
已解决,问题出在我之前删除了_config.yml配置文件中url:后面的地址。谢谢!
最笨的办法,重新下载hexo,把配置文件和md文件拷出来。重新生成一下静态文件
你好,请问你是怎么解决的呢 我也是遇到同样的问题