SASS无法在Windows上运行

时间:2017-11-08 00:59:53

标签: ruby windows sass

我之前使用过很多SASS,但是通过在我没有设置的现有项目上运行bundle exec compass watch。现在我只想自己设置最基本的可能项目。我在Windows 10上。我通过uru安装了Ruby,并且在我的一个红宝石中安装了SASS。我创建了一个名为sass的目录和一个名为css的目录。

当我输入sass(单独或后面跟着任何东西)时,它会抛出,我完全不知道它意味着什么:

C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2053: warning: else without rescue is useless
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2059: warning: else without rescue is useless
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2098: warning: else without rescue is useless
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require': C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2049: syntax error, unexpected modifier_if (SyntaxError)
          if separator.value == 'auto'
            ^
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2053: syntax error, unexpected ',', expecting keyword_end
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2059: syntax error, unexpected ')', expecting keyword_end
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2094: syntax error, unexpected modifier_if
          if separator.value == 'auto'
            ^
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2098: syntax error, unexpected ')', expecting keyword_end
C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script/functions.rb:2884: syntax error, unexpected keyword_end, expecting end-of-input
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script.rb:34:in `<module:Script>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script.rb:8:in `<module:Sass>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/script.rb:3:in `<top (required)>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass/engine.rb:46:in `<top (required)>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:73:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/lib/sass.rb:99:in `<top (required)>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:126:in `require'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/lib/ruby/gems/2.1.0/gems/sass-3.5.0.pre.rc.1/bin/sass:6:in `<top (required)>'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/bin/sass:23:in `load'
        from C:/Ruby/ruby-2.1.3-i386-mingw32/bin/sass:23:in `<main>'

谷歌在这里没有帮助我。我很擅长使用实际的SASS语法和基本的命令行内容,但是对于Ruby,我仍然在“告诉我确切要键入的内容”阶段。我该怎么办?

0 个答案:

没有答案