Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo s 出现下面的代码,不知道怎么解决? #748

Open
vanarrow opened this issue May 16, 2020 · 1 comment
Open

hexo s 出现下面的代码,不知道怎么解决? #748

vanarrow opened this issue May 16, 2020 · 1 comment

Comments

@vanarrow
Copy link

试过下载source code压缩包,npm安装,cnpm安装,但就是会出现下面的报错

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)

@RiverKy
Copy link

RiverKy commented Jul 1, 2020

代码记得用Markdown的代码标签框起来!不然可读性太低了!
看起来你可以参考#749

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants