美文网首页
Jekyll 运行的时候提示错误 cannot load suc

Jekyll 运行的时候提示错误 cannot load suc

作者: HoneyMoose | 来源:发表于2021-10-28 02:43 被阅读0次

    完整的错误信息如下:

    LinkChecker:[Warning]                    donein13.838seconds.Auto-regeneration: enabledfor'D:/WorkDir/Repository/GitHub/opensearch/documentation-website'------------------------------------------------      Jekyll4.2.1Please append `--trace`tothe `serve` commandforany additional informationorbacktrace.                    ------------------------------------------------D:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve/servlet.rb:3:in`require': cannot load such file -- webrick (LoadError)fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve/servlet.rb:3:in`'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:179:in`require_relative'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:179:in`setup'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:100:in`process'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in`blockinprocess_with_graceful_fail'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in`each'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/command.rb:91:in`process_with_graceful_fail'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/lib/jekyll/commands/serve.rb:86:in`block (2levels)ininit_with_program'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in`blockinexecute'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in`each'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in`execute'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in`go'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in`program'fromD:/DKits/Ruby/lib/ruby/gems/3.0.0/gems/jekyll-4.2.1/exe/jekyll:15:in`'fromD:/DKits/Ruby/bin/jekyll:23:in`load'fromD:/DKits/Ruby/bin/jekyll:23:in`'

    问题和解决

    根据官方的项目的说明:

    这是因为:

    从 Ruby 3.0 开始 webrick 已经不在绑定到 Ruby 中了,请参考链接:Ruby 3.0.0 Released中的说明。

    webrick 需要手动进行添加。

    添加的命令为:

    bundleaddwebrick

    后就可以解决这个问题了。

    https://www.ossez.com/t/jekyll-cannot-load-such-file-webrick-loaderror/13779

    相关文章

      网友评论

          本文标题:Jekyll 运行的时候提示错误 cannot load suc

          本文链接:https://www.haomeiwen.com/subject/mczpaltx.html