Bundler 找不到 gem 的兼容版本,尽管它在那里?
Bundler could not find compatible version of gem despite it being there?
我不明白我在 运行 bundle install
:
时收到的这个错误
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) was resolved to 3.0.0, which depends on
bundler (~> 1.0.0)
Current Bundler version:
bundler (1.16.2)
This Gemfile requires a different version of Bundler.
如果我有捆绑器版本 1.16.2
,为什么不认为它满足 ~> 1.0.0
标准?
~>
符号允许描述增量,从而允许最低有效数字与规范不同。
所以在这种情况下 ~> 1.0.0
表示 >= 1.0.0 且 < 1.1 的任何版本。
但是 ~> 1.0
表示任何版本 >= 1.0 和 < 2.0
在你的情况下 1.16.2
明显大于 1.1
,因此不符合规定的要求
我不明白我在 运行 bundle install
:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.0) was resolved to 3.0.0, which depends on
bundler (~> 1.0.0)
Current Bundler version:
bundler (1.16.2)
This Gemfile requires a different version of Bundler.
如果我有捆绑器版本 1.16.2
,为什么不认为它满足 ~> 1.0.0
标准?
~>
符号允许描述增量,从而允许最低有效数字与规范不同。
所以在这种情况下 ~> 1.0.0
表示 >= 1.0.0 且 < 1.1 的任何版本。
但是 ~> 1.0
表示任何版本 >= 1.0 和 < 2.0
在你的情况下 1.16.2
明显大于 1.1
,因此不符合规定的要求