我试图安装Sass。我之前安装了 Ruby 和 MSYS2 ,这是Chocolatey所有人的最新信息:
choco install ruby
choco install msys2
看起来他们已正确安装。 ruby -v
导致:
ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32]
当我尝试运行gem install sass
时,收到以下错误消息:
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.
好的,我试图运行gem install ffi -v 1.9.18
。
我收到了以下错误消息:
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.
我尝试使用正确的安装程序重新安装Ruby,重新启动计算机,但出现了同样的错误。
如何让Sass安装?
答案 0 :(得分:4)
要在2.5之前安装Ruby版本(如评论中所述):
exclude: ['Web_Optimizaion/node_modules/nunjucks/CHANGELOG.md']