前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >hexo博客排错手册

hexo博客排错手册

作者头像
Wlog
发布2022-04-17 11:44:17
7490
发布2022-04-17 11:44:17
举报
文章被收录于专栏:Wlog

🌵hexo博客排错手册

😶‍🌫️推荐选项

  1. 我建议之前前端一点都不了解的 我建议入坑后6个月再魔改
  2. 我在这里是根据 https://akilar.top/ 的群进行解答 有问题可以问 但是必须是任何搜索平台搜不到的并且不能太幼稚不能惯着懒宝宝
  3. akilar yyds

💁如何提问

报错最主要看的是

image-20220416214037708
image-20220416214037708

前面这一段 能提供全的就提供全一些的 这样更好判断

比如spawn failed问题

image-20220416214432663
image-20220416214432663

这个地方只有这里和下面一般是没什么大用处

这里我引用了下洪哥 Hexo错误:spawn failed的解决方法 | 张洪Heo (zhheo.com) 他这个下面的错误应该不能直接猜 但是为了方便还是猜一猜吧doge

需要看上边的地方

image-20220416214614230
image-20220416214614230

🧑‍💻基础错误

spawn failed

Hexo错误:spawn failed的解决方法 | 张洪Heo (zhheo.com)有现成的

Type error 或 TypeError: Cannot read property ‘xxx‘ of undefined

直译:TypeError:无法读取未定义的属性 “xxx”

例如这个问题 就是这个’xxx’没有定义 且这个问题可以在百度搜索到

也是这个问题

extends includes/layout.pug block content #recent-posts.recent-posts include includes/recent-posts.pug include includes/pagination.pug #aside_content.aside_content include includes/aside.pug

hexo s 后进入网页显示的 运行

代码语言:javascript
复制
npm install hexo-renderer-pug hexo-renderer-stylus --save or `yarn add hexo-renderer-pug hexo-renderer-stylus

link.yml 的一个问题

代码语言:javascript
复制
ERROR D:\Desktop\orxing-blog\themes\Butterfly\layout\flink.pug:2
    1| .flink
  > 2|   each i in site.data.link
    3|     p.comment-word= i.class_name
    4|     .post-cards
    5|       ul.md-links

Cannot read property 'length' of undefined
TypeError: D:\Desktop\orxing-blog\themes\Butterfly\layout\flink.pug:2
    1| .flink
  > 2|   each i in site.data.link
    3|     p.comment-word= i.class_name
    4|     .post-cards
    5|       ul.md-links

Cannot read property 'length' of undefined
    at eval (eval at wrap (D:\Desktop\orxing-blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:1890:32)
    at eval (eval at wrap (D:\Desktop\orxing-blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:2017:4)
    at template (eval at wrap (D:\Desktop\orxing-blog\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:10152:72)
    at Theme._View.View._compiled (D:\Desktop\orxing-blog\node_modules\hexo\lib\theme\view.js:123:48)
    at Theme._View.View.View.render (D:\Desktop\orxing-blog\node_modules\hexo\lib\theme\view.js:29:15)
    at D:\Desktop\orxing-blog\node_modules\hexo\lib\hexo\index.js:349:21
    at tryCatcher (D:\Desktop\orxing-blog\node_modules\bluebird\js\release\util.js:16:23)
    at D:\Desktop\orxing-blog\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (D:\Desktop\orxing-blog\node_modules\hexo\lib\hexo\router.js:123:3)
    at RouteStream.Readable.read (_stream_readable.js:457:10)
    at resume_ (_stream_readable.js:936:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)

解决:修改 link.yml 的空格

💁怎么帮助我们

别帮倒忙就行了

在在评论区进行提问

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-04-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 🌵hexo博客排错手册
    • 😶‍🌫️推荐选项
      • 💁如何提问
        • 🧑‍💻基础错误
          • spawn failed
          • Type error 或 TypeError: Cannot read property ‘xxx‘ of undefined
          • extends includes/layout.pug block content #recent-posts.recent-posts include includes/recent-posts.pug include includes/pagination.pug #aside_content.aside_content include includes/aside.pug
          • link.yml 的一个问题
        • 💁怎么帮助我们
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档