昨天用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
等命令都出现如上的报错情况。请大神指点一二,谢谢!
Solved. The problem was that I deleted the address after url: in the _config.yml configuration file. Thanks!
The stupidest way is to re-download hexo and copy out the configuration file and md file. Regenerate the static files
Hello, how did you solve it? I also encountered the same problem