bennyxguo / hexo-theme-obsidian

🎨 A dark Hexo theme, it's responsive, simple but elegant.
https://obsidian.tridiamond.tech/
MIT License
782 stars 108 forks source link

成功运行过,但后面就无法运行了,电脑重置之后依然无法解决 #153

Open irainerc opened 3 years ago

irainerc commented 3 years ago

$ hexo g INFO Validating config INFO Start processing INFO Files loaded in 117 ms ERROR TypeError: B:\Website\Hexo\Rainerc\themes\obsidian\layout\post.ejs:4 2| <%- partial("_partial/post/header")%> 3|

4| <%- partial("_partial/post/article")%> 5|

6|

B:\Website\Hexo\Rainerc\themes\obsidian\layout_partial\post\article.ejs:22 20|

<%- link_to(page.path, page.title || "Untitled", {class: ""}) %> 21|

22| <% if (theme.symbols_count_time.enable) {%> 23|

24| <% if (theme.symbols_count_time.wordCount) { %> 25|

Cannot read property 'enable' of undefined at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout_partial\post\article.ejs:39:37) at article (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiledSync (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:132:24) at _View.renderSync (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:59:25) at Object.partial (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\plugins\helper\partial.js:34:15) at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout\post.ejs:15:17) at post (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiled (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:39:17) at B:\Website\Hexo\Rainerc\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\util.js:16:23) at B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (B:\Website\Hexo\Rainerc\nodemodules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (internal/streams/readable.js:462:10) at resume (internal/streams/readable.js:958:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { path: 'B:\Website\Hexo\Rainerc\themes\obsidian\layout\post.ejs' } ERROR TypeError: B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:10 8|

9|

10|

<%= theme.page_titles.archives || __("Archived") %>

11|

「 <%= site.posts.length %> 」

12|
    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:12:44) at archive (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiled (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:39:17) at B:\Website\Hexo\Rainerc\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\util.js:16:23) at B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (B:\Website\Hexo\Rainerc\nodemodules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (internal/streams/readable.js:462:10) at resume (internal/streams/readable.js:958:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { path: 'B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs' } ERROR TypeError: B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:10 8|

9|

10|

<%= theme.page_titles.archives || __("Archived") %>

11|

「 <%= site.posts.length %> 」

12|
    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:12:44) at archive (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiled (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:39:17) at B:\Website\Hexo\Rainerc\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\util.js:16:23) at B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (B:\Website\Hexo\Rainerc\nodemodules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (internal/streams/readable.js:462:10) at resume (internal/streams/readable.js:958:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { path: 'B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs' } ERROR TypeError: B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:10 8|

9|

10|

<%= theme.page_titles.archives || __("Archived") %>

11|

「 <%= site.posts.length %> 」

12|
    13| <% var posts = site.posts.sort('date', 'desc'); %>

Cannot read property 'archives' of undefined at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs:12:44) at archive (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiled (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:39:17) at B:\Website\Hexo\Rainerc\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\util.js:16:23) at B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (B:\Website\Hexo\Rainerc\nodemodules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (internal/streams/readable.js:462:10) at resume (internal/streams/readable.js:958:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { path: 'B:\Website\Hexo\Rainerc\themes\obsidian\layout\archive.ejs' } ERROR TypeError: B:\Website\Hexo\Rainerc\themes\obsidian\layout\index.ejs:3 1| <%- partial("_partial/menu", null, {cache: true}) %> 2|

3| <%- partial("_partial/screen", null, {cache: false}) %> 4|

5| <%- partial('_partial/list', {start: 1}) %> 6|

B:\Website\Hexo\Rainerc\themes\obsidian\layout_partial\screen.ejs:57 55|

56| <%- link_to(first.path, first.title || config.title, {class: "posttitle"}) %>

57| <% if (theme.symbols_count_time.enable) {%> 58|

59| <% if (theme.symbols_count_time.wordCount) { %> 60|

Cannot read property 'enable' of undefined at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout_partial\screen.ejs:72:37) at screen (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiledSync (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:132:24) at _View.renderSync (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:59:25) at Object.partial (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\plugins\helper\partial.js:34:15) at eval (B:\Website\Hexo\Rainerc\themes\obsidian\layout\index.ejs:13:17) at index (B:\Website\Hexo\Rainerc\node_modules\ejs\lib\ejs.js:682:17) at _View._compiled (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:136:50) at _View.render (B:\Website\Hexo\Rainerc\node_modules\hexo\lib\theme\view.js:39:17) at B:\Website\Hexo\Rainerc\node_modules\hexo\lib\hexo\index.js:64:21 at tryCatcher (B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\util.js:16:23) at B:\Website\Hexo\Rainerc\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (B:\Website\Hexo\Rainerc\nodemodules\hexo\lib\hexo\router.js:47:5) at RouteStream.Readable.read (internal/streams/readable.js:462:10) at resume (internal/streams/readable.js:958:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { path: 'B:\Website\Hexo\Rainerc\themes\obsidian\layout\index.ejs' } INFO 0 files generated in 16 ms

GodD6366 commented 3 years ago

我也遇到同样的问题

kcn3388 commented 3 years ago

@irainerc @GodD6366 请仔细阅读安装指南,并通过修改配置模板的方式构建配置文件