簡體   English   中英

無法加載此類文件-Ruby / Compass / Susy

[英]Cannot load such file - Ruby / Compass / Susy

當我運行grunt時,我不斷收到以下錯誤。 我已經安裝,卸載並因同一問題多次將它們重新安裝。 在具有相同安裝文件的以前的PC上,它可以很好地工作,所以我對引起此問題的原因感到困惑。

我已安裝以下軟件:

  • Ruby 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.

問題已經解決了。 我的問題是可疑正在安裝更高版本的sass。 一旦刪除了該版本並保留了舊的sass版本,我便可以毫無問題地發出咕gr聲。

我希望這也會對其他人有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM