在WIndows 10和ruby版本2.5.0-1上安装SASS时出错

时间:2018-01-10 17:38:44

标签: ruby-on-rails ruby sass rubygems

我尝试使用<CustomAction Id="UnlockAnonymousAuthentication" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" ExeCommand="[SystemFolder]inetsrv\appcmd unlock config /section:anonymousAuthentication" /> <CustomAction Id="UnlockBasicAuthentication" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" ExeCommand="[SystemFolder]inetsrv\appcmd unlock config /section:basicAuthentication" /> <CustomAction Id="UnlockWindowsAuthentication" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" ExeCommand="[SystemFolder]inetsrv\appcmd unlock config /section:windowsAuthentication" /> <InstallExecuteSequence> <Custom Action="UnlockAnonymousAuthentication" Before="InstallFinalize"><![CDATA[NOT Installed]]></Custom> <Custom Action="UnlockBasicAuthentication" Before="InstallFinalize"><![CDATA[NOT Installed]]></Custom> <Custom Action="UnlockWindowsAuthentication" Before="InstallFinalize"><![CDATA[NOT Installed]]></Custom> </InstallExecuteSequence> 在Windows 10中安装Sass,但我收到以下错误:

  

错误:安装sass时出错:           最后一个版本的ffi(&lt; 2,&gt; = 0.5.0)来支持你的Ruby&amp; RubyGems是1.9.18。尝试使用Ruby version 2.5.0-1安装它,然后再次运行当前命令           ffi需要Ruby版本&lt; 2.5,> = 2.0。目前的ruby版本是2.5.0。

Windows 10 Ruby安装程序 - 2.5.0-1(64位) 宝石版 - 2.7.3

提前致谢。

1 个答案:

答案 0 :(得分:3)

ffi尚不支持2.5。降级至2.4。

来源:Error installing sass (Ruby 2.5.0.1, MSYS2 20161025.0.0)