Bundler找不到与gem"bundler"兼容的版本:在Gemfile中: [英] Bundler could not find compatible versions for gem "bundler": In Gemfile:

查看:189
本文介绍了Bundler找不到与gem"bundler"兼容的版本:在Gemfile中:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Jekyll一起创建GitHub博客页面.我经历了无数次失败,只是分叉了一次,然后在存储库中遵循了README. 它是 https://github.com/janczizikow/sleek/blob/master/README. md 而且我试图在directory(master)内部运行,但是此消息不断出现. 我在互联网上尝试了"gem install bundler","gem cleanup"和类似的解决方案,但仍然无法解决.我知道我需要另一个较低的版本,那么如何删除当前版本并安装所需的版本? 我从没用过Ruby,所以我迷路了.一点建议会很重要.

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

推荐答案

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

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
  1. gem install bundler -v 1.12
  2. bundle _1.12_ install

要启动Jekyll,请运行jekyll servebundle exec jekyll serve.

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

这篇关于Bundler找不到与gem"bundler"兼容的版本:在Gemfile中:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆