安装 material 主题的酷炫hexo博客 —— hexo s 后报错

https://github.com/bolnh/hexo-theme-material
安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第1张图片

安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第2张图片的确超级帅,可能是最酷的主题了!!!
但是,你直接安装最新版1.5.6
安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第3张图片hexo s后肯定报错
(我暂时也没搞明白怎改对…)
我的报错比较特别,网上搜不到相关的问题…
心情极度失落

复制并重命名了配置文件,试过下载source code压缩包,npm安装,cnpm安装,照issue某个方法修改一点配置文件,但就是会出现下面的报错

ERROR Plugin load failed: hexo-material
Error: EISDIR: illegal operation on a directory, read
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
ERROR Render HTML failed: index.html
TypeError: F:\Project\Github\hexo - 副本 (6)\themes\material\layout\layout.ejs:3
1|
2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>

        3| <%- partial('_partial/head') %>
        4|
        5| <% if(page.layout === 'gallery') { %>
        6|

F:\Project\Github\hexo - 副本 (6)\themes\material\layout_partial\head.ejs:22
20|
21|

        22| <%- partial('_widget/dnsprefetch') %>
        23|
        24|
        25|

F:\Project\Github\hexo - 副本 (6)\themes\material\layout_widget\dnsprefetch.ejs:2
1|

        2| <% if(theme.vendors.materialcdn) { %>
        3|
        4| <% } %>
        5| <% if( (theme.leancloud.enable === true) || (theme.comment.use == "valine") ) { %>

Cannot read property 'materialcdn' of undefined
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :10:25)
at dnsprefetch (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiledSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:132:22)
at viewFn.View.renderSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:60:23)
at Object.partial (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :10:17)
at head (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiledSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:132:22)
at viewFn.View.renderSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:60:23)
at Object.partial (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :17:17)
at layout (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiled (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:136:48)
at viewFn.View.render (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:41:15)
at F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:52:23
at tryCatcher (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\async.js:86:9)
Unhandled rejection TypeError: F:\Project\Github\hexo - 副本 (6)\themes\material\layout\layout.ejs:3
1|
2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>

        3| <%- partial('_partial/head') %>
        4|
        5| <% if(page.layout === 'gallery') { %>
        6|

F:\Project\Github\hexo - 副本 (6)\themes\material\layout_partial\head.ejs:22
20|
21|

        22| <%- partial('_widget/dnsprefetch') %>
        23|
        24|
        25|

F:\Project\Github\hexo - 副本 (6)\themes\material\layout_widget\dnsprefetch.ejs:2
1|

        2| <% if(theme.vendors.materialcdn) { %>
        3|
        4| <% } %>
        5| <% if( (theme.leancloud.enable === true) || (theme.comment.use == "valine") ) { %>

Cannot read property 'materialcdn' of undefined
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :10:25)
at dnsprefetch (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiledSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:132:22)
at viewFn.View.renderSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:60:23)
at Object.partial (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :10:17)
at head (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiledSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:132:22)
at viewFn.View.renderSync (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:60:23)
at Object.partial (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
at eval (eval at compile (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:652:12), :17:17)
at layout (F:\Project\Github\hexo - 副本 (6)\node_modules\ejs\lib\ejs.js:682:17)
at viewFn._compiled (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:136:48)
at viewFn.View.render (F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:41:15)
at F:\Project\Github\hexo - 副本 (6)\node_modules\hexo\lib\theme\view.js:52:23
at tryCatcher (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (F:\Project\Github\hexo - 副本 (6)\node_modules\bluebird\js\release\async.js:86:9)

issue里面相关的解答(我没有成功)

安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第4张图片
安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第5张图片安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第6张图片

但1.5.2版本是正常版本,下载即可使用(为什么我不早点发现)

https://github.com/bolnh/hexo-theme-material/releases

安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第7张图片效果
安装 material 主题的酷炫hexo博客 —— hexo s 后报错_第8张图片

你可能感兴趣的:(网站)