'hexo s occured some warning and cause the problem I can't open the category
I have some errors when I try to start my hexo blogs, using the code hexo s. It will display these warning. At first I didn't notice it, but now I find that I couldn't open my blog's category and Tag modules.
It just show a white space. The errors are shown below. I don't know why.
I tried the online method to reduce the version of node, but I still failed.
76608@Kyobo MINGW64 /e/blog
$ hexo s
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
(node:14444) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:14444) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14444) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:14444) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:14444) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:14444) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
ERROR {
err: SyntaxError: Invalid or unexpected token in "E:\\blog\\themes\\Chic\\layout\\category.ejs"
at new Function (<anonymous>)
at exports.compile (E:\blog\node_modules\ejs\lib\ejs.js:242:14)
at Object.exports.render (E:\blog\node_modules\ejs\lib\ejs.js:284:66)
at Hexo.<anonymous> (E:\blog\node_modules\hexo-renderer-mathjax\index.js:14:24)
at Hexo.tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.ret (eval at makeNodePromisifiedEval (C:\Users\76608\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
at E:\blog\node_modules\hexo\lib\hexo\render.js:75:22
at tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (E:\blog\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (E:\blog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (E:\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (E:\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:464:21)
} Render HTML failed: category/index.html
Unhandled rejection SyntaxError: Invalid or unexpected token in "E:\\blog\\themes\\Chic\\layout\\category.ejs"
at new Function (<anonymous>)
at exports.compile (E:\blog\node_modules\ejs\lib\ejs.js:242:14)
at Object.exports.render (E:\blog\node_modules\ejs\lib\ejs.js:284:66)
at Hexo.<anonymous> (E:\blog\node_modules\hexo-renderer-mathjax\index.js:14:24)
at Hexo.tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.ret (eval at makeNodePromisifiedEval (C:\Users\76608\AppData\Roaming\npm\node_modules\hexo-cli\node_modules\bluebird\js\release\promisify.js:184:12), <anonymous>:13:39)
at E:\blog\node_modules\hexo\lib\hexo\render.js:75:22
at tryCatcher (E:\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (E:\blog\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (E:\blog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (E:\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (E:\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (internal/timers.js:464:21)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
