Grunt / Bundler will not use the specified version of sass

We have a project with the settings for Grunt and Bundler. All of them are installed without problems. Gemfile.lock is generated, the correct gems and grunt files created using npm are captured. We start our hours on the project, and it bombes on sass compilation because it uses the wrong version of sass, and not the one specified in the gemfile.

It’s on the windows, by the way ...

Gemfile

source 'https://rubygems.org'

gem 'sass', '~> 3.2'
gem 'compass', '~> 0.12'
gem 'susy', '~> 1.0'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    chunky_png (1.3.1)
    compass (0.12.6)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.2.19)
    fssm (0.2.10)
    sass (3.2.19)
    susy (1.0.9)
      compass (>= 0.12.2)
      sass (>= 3.2.0)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  compass (~> 0.12)
  sass (~> 3.2)
  susy (~> 1.0)
+4
source share
3 answers

, ( Gemfile), bundle exec .

. sass --watch, bundle exec sass --watch, , .

bundle exec: http://bundler.io/man/bundle-exec.1.html

+6

( GEMFILE Gruntfile), Compass task "bundleExec" true, . "grunt server" ( "bundle exec grunt server" ). -, , , . .

0

unix :

which sass

- :

/Users/[username]/.rbenv/shims/sass

- /usr/bin/sass, bundle exec, @sevenseacat.

0

Source: https://habr.com/ru/post/1538731/


All Articles