【发布时间】: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