Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler could not find compatible versions for gem "bundler" #15

Open
syedrakib opened this issue Feb 1, 2019 · 1 comment
Open

Bundler could not find compatible versions for gem "bundler" #15

syedrakib opened this issue Feb 1, 2019 · 1 comment

Comments

@syedrakib
Copy link

syedrakib commented Feb 1, 2019

I have been running a Rails 4 app and my GemFIle has been fine and installing all gems perfectly all this time with Bundler 2.0.1.

Today, when i added gem "activemodel-associations" into the Gemfile, and then tried to install with bundle install, i have been getting this error:

> bundle install
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.............
Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    rails (= 4.2.11) was resolved to 4.2.11, which depends on
      bundler (< 2.0, >= 1.3.0)

    sassc-rails was resolved to 1.3.0, which depends on
      sassc (~> 1.9) was resolved to 1.10.0, which depends on
        bundler

  Current Bundler version:
    bundler (2.0.1)
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.11)', in any of the sources.

Upon removing the gem "activemodel-associations" line from my Gemfile and then running bundle install works fine again.

@joker1007
Copy link
Owner

joker1007 commented Feb 2, 2019

I think that activemodel-association does not cause the probrem.

Because bundler-2.0 conflicts with rails-4.x, bundler-2.0 cannot install rails-4.x.
If you updated bundler after starting to develop the rails project, Other gems also cause same probrem probably.
I guess so.
can you do bundle update in the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants