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:
我试图安装Rails 4.2.0.beta1(2014年8月20日发布)。我收到错误Bundler找不到gem“sprockets-rails”的兼容版本。以下是详细信息:
$ 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?
如何安装Rails 4.2.0.beta1?
1 个解决方案
#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
.
你的Gemfile中有一个sass-rails gem。您需要将sass-rails的版本更改为“5.0.0.beta1”。然后运行bundle update sass-rails rails。
You could find some useful info at this sprockets-rails
issue.
您可以在此sprockets-rails问题上找到一些有用的信息。
P.S.: Moreover I have the same problem with rails_admin
which I reported here.
P.S。:另外我和rails_admin有同样的问题,我在这里报道。
#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
.
你的Gemfile中有一个sass-rails gem。您需要将sass-rails的版本更改为“5.0.0.beta1”。然后运行bundle update sass-rails rails。
You could find some useful info at this sprockets-rails
issue.
您可以在此sprockets-rails问题上找到一些有用的信息。
P.S.: Moreover I have the same problem with rails_admin
which I reported here.
P.S。:另外我和rails_admin有同样的问题,我在这里报道。