我试图安装Rails 4.2.0.beta1(
released Aug 20,2014).我收到一个错误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)
如何安装Rails 4.2.0.beta1?
解决方法
您的Gemfile中有一个
sass-rails gem.您需要将sass-rails的版本更改为“5.0.0.beta1”.然后运行捆绑更新sass-rails rails.
你可以在this sprockets-rails
issue找到一些有用的信息.
另外我也有rails_admin
的问题,我报here.