0
Rubyのバージョン:1.9.3サブ依存関係のためにRubyバージョンを尊重する方法
Gemfile:
ruby '1.9.3'
source 'http://rubygems.org'
gem 'site_prism', '2.6'
実行 "バンドルのインストールには、" で失敗します。
Gem::InstallError: nokogiri requires Ruby version < 2.5, >= 2.2.
An error occurred while installing nokogiri (1.8.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.8.1'` succeeds before bundling.
In Gemfile:
site_prism was resolved to 2.6, which depends on
capybara was resolved to 2.15.4, which depends on
xpath was resolved to 2.1.0, which depends on
nokogiri
鋸山1.8.1は、Ruby 1.9.3と互換性がありません。
なぜ私の現在のRubyのバージョンと互換性のない宝石をインストールしようとしていますか?私が試した
もの:
- 異なるバンドラバージョン(1.12.5、1.15.4、1.16.0)
お返事ありがとうございます。なぜですか?私のルビーバージョンを指定して、必要なサブ依存関係のバージョンを自動的に決定してはいけませんか? – DanVoges