gpt4 book ai didi

ruby - Bundler 找不到 gem "bundler": In Gemfile: 的兼容版本

转载 作者:行者123 更新时间:2023-12-03 16:22:57 25 4
gpt4 key购买 nike

我正在用 Jekyll 制作 GitHub 博客页面。我失败了很多次,只是 fork 了一个新的,然后按照存储库上的自述文件进行操作。
它是 https://github.com/janczizikow/sleek/blob/master/README.md
我试图在目录(主)内运行,但这个消息不断出现。
我在互联网上尝试了 'gem install bundler' 'gem cleanup' 和类似的解决方案,但仍然无法修复它。我知道我需要另一个较低的版本,那么如何删除当前版本并安装我需要的版本?
我从未使用过 Ruby,所以我很迷茫。一点建议将意味着很多。

bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
bundler (~> 1.12) x64-mingw32

Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (~> 1.12)' in any of the relevant sources:
the local ruby installation

最佳答案

2.0.2 版本来自 gem install bundler ,但该项目使用捆绑程序版本 1.12。

要解决您的问题,请运行

  • gem install bundler -v 1.12
  • bundle _1.12_ install

  • 要启动 Jekyll 运行 jekyll servebundle exec jekyll serve .

    关于ruby - Bundler 找不到 gem "bundler": In Gemfile: 的兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57170296/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com