【问题标题】:What does "Your bundle is locked to addressable " mean?“您的捆绑包被锁定为可寻址”是什么意思?
【发布时间】:2017-07-04 11:58:33
【问题描述】:

我正在尝试bundle exec jekyll serve

但我收到此错误:

Your bundle is locked to addressable (2.5.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of addressable (2.5.0) has removed it. You'll need to update your bundle to a different version of addressable (2.5.0) that hasn't been removed in order to install.
Run `bundle install` to install missing gems.

bundle install 给我

Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile (1.13.7). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.

这可行,但它给了我我认为错误的版本:

Successfully installed bundler-1.15.1
Parsing documentation for bundler-1.15.1
Done installing documentation for bundler after 4 seconds
1 gem installed

捆绑包在哪里锁定为可寻址的,这意味着什么?我检查了我的gemfile,里面什么都没有。我可以解锁吗?我正在尝试为 jekyll 运行样板并使用 brew 安装 ruby​​。

【问题讨论】:

  • 试试bundle update然后再做bundle exec jekyll serve
  • 看来我正在运行不同版本的 ruby​​...它说,liquid-4.0.0 requires ruby version >= 2.1.0, which is incompatible with the current version, ruby 2.0.0p648 但是当我尝试 brew update ruby​​ 时,它说Error: ruby 2.4.1_1 already installed
  • brew update ruby?你没有使用 RVM 或 RBenv 吗?

标签: ruby-on-rails ruby bundle jekyll


【解决方案1】:

“Your bundle is locked to addressable...”错误仅表示您在 Gemfile.lock 中指定了一个可寻址版本,但它尚未安装在您的机器上(还)。运行 bundle install 可以解决这个问题。

因此,如果您运行以下命令,您的应用应该可以正常运行:

$ bundle install
$ bundle exec jekyll serve

“Bundler (1.13.6) 较旧...”警告只是来自 Bundler 的好心人的仅供参考,鼓励您升级。您可以放心地忽略它而不会影响您的应用(但保持最新状态是一种很好的做法)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-28
    • 2016-07-27
    • 2019-02-12
    • 2011-09-13
    • 2018-09-14
    相关资源
    最近更新 更多