0

当我运行 grunt 时,我不断收到以下错误。我已经多次安装、卸载、重新安装它们,但同样的问题。在具有相同安装文件的以前的 PC 上它工作正常,所以我对导致问题的原因感到困惑?

我安装了以下内容:

  • 红宝石 2.1.5
  • Node.js 0.10.26
  • 指南针 0.12.2
  • 苏西 1.0.9

错误是:

C:\Users\jnorthrup\Documents\Visual Studio 2012\Projects\RealEstate\RealEstate.Web\assets\sass>grunt
Running "compass:dist" (compass) task
C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require': cannot load such file -- sass/script/node (LoadError)
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in '<top (required)>'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in 'block in <top (required)>'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in 'each'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in '<top (required)>'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in '<top (required)>'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:5:in 'block in <top (required)>'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in 'each'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/lib/compass.rb:4:in '<top (required)>'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in 'require'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:20:in 'block in <top (required)>'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:8:in 'fallback_load_path'
    from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/compass-0.12.2/bin/compass:19:in '<top (required)>'
    from C:/Ruby200-x64/bin/compass:23:in 'load'
    from C:/Ruby200-x64/bin/compass:23:in '<main>'
Warning: ? Use --force to continue.

Aborted due to warnings.
4

1 回答 1

0

问题已经解决了。我的问题是 susy 正在安装更高版本的 sass。一旦我删除了那个版本并保留了我的旧 sass 版本,我就可以毫无问题地运行 grunt。

我希望这对其他人也有帮助。

于 2014-12-10T22:28:16.137 回答