1

I am using middleman 3.3.9 and

gem 'sass-rails', '~> 4.0.3'
gem 'bootstrap-sass', '~> 3.3.1'
gem 'bootstrap-timepicker-rails'
gem 'sass', '~> 3.2.19'

When I run bundle install, I get this error:

Bundler could not find compatible versions for gem "sass":
      In Gemfile:
        middleman (~> 3.3.9) ruby depends on
          sass (< 4.0, >= 3.4.0) ruby

        sass (3.2.19)

How can I make this pass?

Bogdan Popa
  • 1,099
  • 1
  • 16
  • 37

2 Answers2

2

update Gemfile with the following line.

gem 'sass', '~> 3.4.0'

Edit

basically you'll need to upgrade all sass dependant gems to a level, every dependant gem uses same version of sass

Sumit Mahamuni
  • 302
  • 1
  • 6
1

You're having a dependent gem conflict problem. You've locked sass-rails down so it can't bring in a sass that's new enough to satisfy the version of middleman that you're running.

You need to either lower the version of middleman that you're using, or increase the version of sass-rails.

smathy
  • 26,283
  • 5
  • 48
  • 68
  • Heh, no problem. Once you know how to read the errors, they're actually very informative. Keep at it, these problems trip everyone over at some point :) – smathy Mar 16 '15 at 15:20