node.js - hexo命令报错
伊谢尔伦
伊谢尔伦 2017-04-17 15:31:01
0
3
795

昨天用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等命令都出现如上的报错情况。请大神指点一二,谢谢!

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
洪涛

Solved. The problem was that I deleted the address after url: in the _config.yml configuration file. Thanks!

Ty80

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template