Open vanarrow opened 4 years ago
试过下载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| <!DOCTYPE html> 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| <!DOCTYPE html> 2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>
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)
代码记得用Markdown的代码标签框起来!不然可读性太低了! 看起来你可以参考https://github.com/bolnh/hexo-theme-material/issues/749 。
试过下载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| <!DOCTYPE html> 2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_partial\head.ejs:22 20| 21|
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_widget\dnsprefetch.ejs:2 1|
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| <!DOCTYPE html>
2| <html style="display: none;" <% if(config.language !== null) { %>lang="<%- config.language.substring(0,2) %>"<% } %>>
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_partial\head.ejs:22 20| 21|
F:\Project\Github\hexo - 副本 (6)\themes\material\layout_widget\dnsprefetch.ejs:2 1|
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)