jekyll s 报:in `load': marshal data too short (ArgumentError)

jekyll

一、bug:

  1. 执行 jekyll s 报:in `load’: marshal data too short (ArgumentError)
    完整bug记录:
Configuration file: F:/develop_doc/blog/github/pentiumCM_github_io/pentiumCM.github.io/_config.yml
                    ------------------------------------------------
      Jekyll 4.0.0   Please append `--trace` to the `serve` command
                     for any additional information or backtrace.
                    ------------------------------------------------
Traceback (most recent call last):
        19: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/bin/jekyll:23:in `<main>'
        18: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/bin/jekyll:23:in `load'
        17: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/exe/jekyll:15:in `<top (required)>'
        16: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        15: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        14: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        13: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        12: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        11: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
        10: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
         9: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `each'
         8: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
         7: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `process'
         6: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:30:in `new'
         5: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:33:in `initialize'
         4: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:113:in `reset'
         3: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:41:in `clear_if_config_changed'
         2: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:86:in `[]'
         1: from F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:171:in `load'
F:/develop_tools/ruby/ruby-install/Ruby27-x64/lib/ruby/gems/2.7.0/gems/jekyll-4.0.0/lib/jekyll/cache.rb:171:in `load': marshal data too short (ArgumentError)

解决方案:
在命令行中执行:
jekyll clean
之后再执行:jekyll s便正常了

参考GitHub中某大神issue:
https://github.com/jekyll/jekyll/issues/3761
在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值