Error installing Sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)

怎甘沉沦 提交于 2019-12-23 11:35:15

问题


I tried to install Sass. I installed Ruby and MSYS2 prior to that, the latest from all with Chocolatey:

choco install ruby
choco install msys2

Seemingly they were properly installed. ruby -v results in:

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

When I tried to run gem install sass I received 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.

Ok, so I attempted to run gem install ffi -v 1.9.18.

I received 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 to reinstall Ruby with proper installer, restarted computer, but the same error appears.

How can I make Sass to get installed?


回答1:


To install the Ruby version before 2.5 (as mentioned in the comments):

choco install ruby --version 2.4.3.1


来源:https://stackoverflow.com/questions/48142031/error-installing-sass-ruby-2-5-0-1-msys2-20161025-0-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!