Bundler could not find compatible versions for gem “bundler”: In Gemfile:

扶醉桌前 提交于 2020-01-23 02:27:25

问题


I'm making GitHub blog page with Jekyll. I've failed like numerous times and just forked new one and followed README on the repository. It's https://github.com/janczizikow/sleek/blob/master/README.md and I tried to run Inside the directory(master) but this msg keeps coming out. I tried 'gem install bundler' 'gem cleanup' and similar solutions on the internet but still can't fix it. I get that I need another version which is lower one, then how can I remove the current one and install the version I need? I've never used Ruby so I'm SO lost. A little advice will mean a lot.

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

回答1:


The bundler version 2.0.2 comes from gem install bundler, but the project uses bundler version 1.12.

To fix your issue run

  1. gem install bundler -v 1.12
  2. bundle _1.12_ install

To start Jekyll run jekyll serve or bundle exec jekyll serve.



来源:https://stackoverflow.com/questions/57170296/bundler-could-not-find-compatible-versions-for-gem-bundler-in-gemfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!