11

I've attempted to install Rails 4.2.0.beta1 (released Aug 20, 2014). I get an error Bundler could not find compatible versions for gem "sprockets-rails". Here are the details:

$ bundle update rails
Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "sprockets-rails":
  In Gemfile:
    sass-rails (~> 4.0.3) ruby depends on
      sprockets-rails (~> 2.0) ruby

    rails (= 4.2.0.beta1) ruby depends on
      sprockets-rails (3.0.0.beta1)

How can I install Rails 4.2.0.beta1?

1 Answer 1

22

You have a sass-rails gem in your Gemfile. You need to change the version of sass-rails to '5.0.0.beta1'. And then run bundle update sass-rails rails.

You could find some useful info at this sprockets-rails issue.

P.S.: Moreover I have the same problem with rails_admin which I reported here.

2
  • This also solved File to import not found or unreadable: nprogress (or any other file in place of progress) for me.
    – Eric Boehs
    Aug 29, 2014 at 17:25
  • Thanks for this. This should be added to the Edge guide as it's not obvious at all.
    – tirdadc
    Oct 17, 2014 at 6:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.