我分叉了 github 项目 sujaykundo777 并希望自定义我的博客
为此,我下载了 Ruby 来使用 127.0.0.1 制作博客 但是写博客错误太多了
为了解决该错误,我删除并重新安装了 Ruby 及其依赖项,并按照其他社区的指示进行操作,但一切都没有用。
这是错误
PS C:\Users\ProBook\Desktop\upked.github.io> ruby -v
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [x64-mingw-ucrt]
PS C:\Users\ProBook\Desktop\upked.github.io> jekyll -v
jekyll: version unknown
PS C:\Users\ProBook\Desktop\upked.github.io> gem uninstall jekyll
You have requested to uninstall the gem:
jekyll-4.3.3
PS C:\Users\ProBook\Desktop\upked.github.io> bundle exec jekyll serve --trace
Configuration file: C:/Users/ProBook/Desktop/upked.github.io/_config.yml
Source: C:/Users/ProBook/Desktop/upked.github.io
Destination: C:/Users/ProBook/Desktop/upked.github.io/build
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
done in 39.734 seconds.
Auto-regeneration: enabled for 'C:/Users/ProBook/Desktop/upked.github.io'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-admin-0.11.1/lib/jekyll/commands/serve.rb:23:in `require': cannot load such file -- rack/handler (LoadError)
PS C:\Users\ProBook\Desktop\upked.github.io> bundle exec serve --livereload
bundler: command not found: serve
Install missing gem executables with `bundle install`
如何修复这些错误?我该怎么办??
卸载和安装 ruby、bundler 等..
gem uninstall --all
使用 Github、堆栈溢出、jekyll QnA 进行搜索。但我找不到任何与我的错误相匹配的内容。
我遇到了一个类似问题,我认为这与机架 2 -> 3 不兼容有关。
尝试在您的
gem "rackup"
中添加 Gemfile
,然后再次尝试 bundle
。
此外,分享您的
Gemfile
以帮助调试也会很有帮助。