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

本文详细记录了在Hexo中安装和使用Material主题时遇到的错误及解决方法,指出直接安装最新版本可能导致的问题,并提供了回退到稳定版本的建议。

https://github.com/bolnh/hexo-theme-material
在这里插入图片描述

在这里插入图片描述的确超级帅,可能是最酷的主题了!!!
但是,你直接安装最新版1.5.6
在这里插入图片描述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 === 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值