服务或建造时杰基尔错误

时间:2017-10-26 13:18:50

标签: ruby-on-rails rubygems syntax-error jekyll rvm

每次尝试在Mac High Sierra上的v3.1.6上使用jekyll build / jekyll时都会出错。我已经尝试过gem清理捆绑安装卸载并重新安装jekyll。有没有人对此有任何影响?

/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2054: warning: else without rescue 
is useless
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2060: warning: else without rescue 
is useless
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2099: warning: else without rescue 
is useless
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script.rb:34:in `require': 
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2050: syntax error, unexpected 
modifier_if (SyntaxError)
      if separator.value == 'auto'
        ^
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2054: syntax error, unexpected 
',', expecting keyword_end
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2060: syntax error, unexpected 
')', expecting keyword_end
/Users/alexandermurray/.rvm/gems/ruby-2.1.3/gems/sass-
3.5.2/lib/sass/script/functions.rb:2095: syntax error, unexpected 
modifier_if
      if separator.value == 'auto'
        ^

1 个答案:

答案 0 :(得分:0)

似乎sass-3.5.2与ruby-2.1.3不兼容。您需要更新Ruby的版本。问题可能与此问题有关:https://bugs.ruby-lang.org/issues/10279