hexo icon indicating copy to clipboard operation
hexo copied to clipboard

hexo g/d/init,then the shell shows "FATAL Cannot read property 'replace' of null,TypeError: Cannot read property 'replace' of null", how to solve this problem?

Open mg2015started opened this issue 10 years ago • 7 comments

error message

$ hexo g FATAL Cannot read property 'replace' of null TypeError: Cannot read property 'replace' of null at D:\hexo\node_modules\hexo\lib\hexo\load_config.js:35:28 at tryCatcher (D:\hexo\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (D:\hexo\node_modules\bluebird\js\release\promise.js:510:31) at Promise._settlePromise (D:\hexo\node_modules\bluebird\js\release\promise.js:567:18) at Promise._settlePromise0 (D:\hexo\node_modules\bluebird\js\release\promise.js:612:10) at Promise._settlePromises (D:\hexo\node_modules\bluebird\js\release\promise.js:691:18) at Async._drainQueue (D:\hexo\node_modules\bluebird\js\release\async.js:138:16) at Async._drainQueues (D:\hexo\node_modules\bluebird\js\release\async.js:148:10) at Immediate.Async.drainQueues (D:\hexo\node_modules\bluebird\js\release\async.js:17:14) at runCallback (timers.js:574:20) at tryOnImmediate (timers.js:554:5) at processImmediate as _immediateCallback

mg2015started avatar Sep 05 '16 05:09 mg2015started

me too

qiusheng2011 avatar Sep 07 '16 14:09 qiusheng2011

me too

loveCG avatar Dec 07 '16 07:12 loveCG

Can you run hexo g --debug, and list the output here?

NoahDragon avatar Dec 07 '16 12:12 NoahDragon

11:10:40.910 DEBUG Hexo version: 3.2.2 11:10:40.912 DEBUG Working directory: ~/Hexo/ 11:10:40.983 DEBUG Config loaded: ~/Hexo/_config.yml 11:10:40.987 FATAL Cannot read property 'replace' of null TypeError: Cannot read property 'replace' of null

evawyf avatar Jan 29 '17 11:01 evawyf

have you guys delete the address in:

url: http://yoursite.com/

moqu79 avatar Mar 08 '17 12:03 moqu79

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 27 '17 04:09 stale[bot]

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 26 '17 05:11 stale[bot]