"Your bundle is locked to addressable "是什么意思?



我正在尝试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

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

"您的捆绑包已锁定为可寻址..."错误只是意味着您在 Gemfile.lock 中指定了可寻址的版本,但它尚未安装在您的计算机上(尚未)。运行bundle install可以解决这个问题。

因此,如果运行以下内容,则应用应该可以正常运行:

$ bundle install
$ bundle exec jekyll serve

"捆绑器 (1.13.6) 较旧..."警告只是来自Bundler的好人的仅供参考,鼓励您升级。您可以安全地忽略它,而不会影响您的应用(但最好保持最新状态)。

最新更新