Installing Rails 4.2.0.beta1 – Bundler could not find compatible versions for gem “sprockets-rails”

吃可爱长大的小学妹 提交于 2019-12-22 03:41:37

问题


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:


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.



来源:https://stackoverflow.com/questions/25474135/installing-rails-4-2-0-beta1-bundler-could-not-find-compatible-versions-for-ge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!