【问题标题】:'Bundler could not find compatible versions for gem "jemoji"' when bundle exec jekyll serve当 bundle exec jekyll serve 时,'Bundler 找不到 gem "jemoji" 的兼容版本
【发布时间】:2017-07-25 11:02:08
【问题描述】:

实际上我不太清楚 bundle 和 jekyll 是什么,但我正在尝试执行 bundle exec jekyll serve 按照指南 https://github.com/apache/incubator-rocketmq-site ,但失败了。

我在谷歌上找不到类似的东西,所以我在这里发布一个问题。

$ bundle exec jekyll serve
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/resolver.rb:21                                                                                       8:in `rescue in start': Bundler could not find compatible versions for gem "jemo                                                                                       ji": (Bundler::VersionConflict)
  In Gemfile:
    minimal-mistakes-jekyll x64-mingw32 was resolved to 4.1.0, which depends on
      jemoji (~> 0.7) x64-mingw32

Could not find gem 'jemoji (~> 0.7) x64-mingw32', which is required by gem 'mini                                                                                       mal-mistakes-jekyll x64-mingw32', in any of the sources.
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/r                                                                                       esolver.rb:212:in `start'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/r                                                                                       esolver.rb:191:in `resolve'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/d                                                                                       efinition.rb:235:in `resolve'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/d                                                                                       efinition.rb:159:in `specs'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/d                                                                                       efinition.rb:218:in `specs_for'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/d                                                                                       efinition.rb:207:in `requested_specs'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/r                                                                                       untime.rb:109:in `block in definition_method'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/r                                                                                       untime.rb:21:in `setup'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler.r                                                                                       b:101:in `setup'
        from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.15.3/lib/bundler/s                                                                                       etup.rb:19:in `<top (required)>'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                       :in `require'
        from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54                                                                                       :in `require'

我该如何解决?

【问题讨论】:

    标签: ruby rubygems jekyll bundler


    【解决方案1】:

    首先单独运行bundle install(链接自述文件中的第 4 步)。这应该会安装必要的软件包。

    然后你可以运行bundle exec jekyll servebundle exec 表示它将使用那些已安装的软件包。

    【讨论】:

    • 谢谢!我发现我的捆绑安装失败了!我已经解决了,然后问题就消失了。
    猜你喜欢
    • 2014-03-14
    • 2012-04-08
    • 2020-02-29
    • 2019-12-01
    • 2011-10-31
    • 1970-01-01
    • 2015-03-30
    • 2017-07-17
    • 2018-02-09
    相关资源
    最近更新 更多