参见英文答案 Updating from Rails 4.0 to 4.1 gives sass-rails railties version conflicts4个 我正在尝试将我的应用程序从rails 3.2.16升级到rails 4.1.0,当我尝试调用bundler时,我开始遇到麻烦: Bundler could no
我正在尝试将我的应用程序从rails 3.2.16升级到rails 4.1.0,当我尝试调用bundler时,我开始遇到麻烦:
Bundler could not find compatible versions for gem "sprockets": In Gemfile: sass-rails (>= 0) ruby depends on sprockets (~> 2.0.0) ruby rails (= 4.1.0) ruby depends on sprockets-rails (~> 2.0) ruby depends on sprockets (2.12.1) Bundler could not find compatible versions for gem "sprockets-rails": In Gemfile: sass-rails (>= 0) ruby depends on sprockets-rails (~> 2.0.0) ruby rails (= 4.1.0) ruby depends on sprockets-rails (2.1.3) Bundler could not find compatible versions for gem "railties": In Gemfile: sass-rails (>= 0) ruby depends on railties (~> 3.1.0) ruby rails (= 4.1.0) ruby depends on railties (4.1.0)
我的Gemfile的(部分):
gem 'rails', '4.1.0' gem 'mysql2' gem "rake" gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS gem 'sass-rails'Bundler的某些旧版本有一个可能导致此故障无法解决的错误.更新到最新版本可能会有所帮助.
运行此更新:
gem install bundler