Ruby Rails:捆绑安装找不到“bundler”的兼容版本 gem
Ruby on Rails: Bundle install could not find compatible versions for “bundler” gem
我正在尝试 运行 命令 bundle install
并收到以下错误 -
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
blog_posts was resolved to 0.0.1, which depends on
blog_viewers was resolved to 0.0.1, which depends on
rails (~> 4.2) was resolved to 4.2.7, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2)', in any of the sources.
如果我降级版本然后我收到以下错误 -
Traceback (most recent call last):
1: from /home/user/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
/home/user/.rbenv/versions/2.6.6/bin/bundle:23:in `load': cannot load such file -- /home/user/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle (LoadError)
注意 - 默认捆绑器版本为 1.17.3
有什么办法可以解决这个问题吗?任何形式的帮助将不胜感激。
再试一次 gem install bundler
bundle install
我正在尝试 运行 命令 bundle install
并收到以下错误 -
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
blog_posts was resolved to 0.0.1, which depends on
blog_viewers was resolved to 0.0.1, which depends on
rails (~> 4.2) was resolved to 4.2.7, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails (~> 4.2)', in any of the sources.
如果我降级版本然后我收到以下错误 -
Traceback (most recent call last):
1: from /home/user/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
/home/user/.rbenv/versions/2.6.6/bin/bundle:23:in `load': cannot load such file -- /home/user/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle (LoadError)
注意 - 默认捆绑器版本为 1.17.3
有什么办法可以解决这个问题吗?任何形式的帮助将不胜感激。
再试一次 gem install bundler
bundle install