Error installing sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)

I tried to install Sass. I installed Ruby and MSYS2 before this, the last of all with chocolatey .

choco install ruby choco install msys2 

Apparently, they were correctly installed. ruby -v results:

 ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32] 

When I tried to run gem install sass , I get the following error message:

 ERROR: Error installing sass: The last version of ffi (< 2, >= 0.5.0) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9.18` and then running the current command again ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0. 

So, I tried to run gem install ffi -v 1.9.18

I got this error message:

 ERROR: Error installing ffi: The last version of ffi (= 1.9.18) to support your Ruby & RubyGems was 1.9.18. Try installing it with `gem install ffi -v 1.9.18` ffi requires Ruby version < 2.5, >= 2.0. The current ruby version is 2.5.0. 

I tried reinstalling Ruby with the correct restarted computer, but the same error appears.

How can I make Sass to install?

Thank you for your help!

+5
source share
1 answer

To install Ruby version to version 2.5 (as indicated in the comments):

 choco install ruby --version 2.4.3.1 
+4
source

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


All Articles