![](/img/trans.png)
[英]Bundler could not find compatible versions for gem “rack”: In Gemfile:
[英]Bundler could not find compatible versions for gem "bundler": In Gemfile:
我正在用 Jekyll 制作 GitHub 博客頁面。 我失敗了很多次,只是分叉了一個新的,然后按照存儲庫上的自述文件進行操作。
它是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
,但項目使用 bundler 版本 1.12。
要解決您的問題,請運行
gem install bundler -v 1.12
bundle _1.12_ install
要啟動 Jekyll,請運行jekyll serve
或bundle exec jekyll serve
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.