罗盘手表错误 - Mac OS X.

时间:2013-09-11 10:18:08

标签: ruby macos sass

我已经运行sass和指南针几个月了,昨天我遇到了一些ruby问题和一个无关项目。所以最后我重新安装了ruby和sass。

从那以后,我不能再运行指南针而不会出现以下错误。

##########:######### #########$ compass watch
/Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require': cannot load such file -- sass/script/node (LoadError)
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass.rb:4:in `each'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `load'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `<main>'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/#############/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'

其他指南针命令似乎都没有工作,所以我重新安装指南针,我仍然得到同样的错误。

以下是我正在运行的ruby和sass的版本。罗盘-v不起作用。

ruby​​ 2.0.0p247(2013-06-27修订版41674)[x86_64-darwin11.4.2] Sass 3.3.0.alpha.253(出血边缘)

有人有任何想法我可以解决这个问题吗?

1 个答案:

答案 0 :(得分:13)

看起来您可能有一个版本的SASS无法使用此版本的Compass

我在这里找到答案:https://github.com/chriseppstein/compass/issues/1514

以下对我有用:

看看你安装的SASS版本(你说Sass 3.3.0.alpha.253)

sass --version

卸载sass:

sudo gem uninstall sass

重新安装sass - 您应该获得最新的工作版本:

sudo gem install sass

重新安装指南针(我做了这个,它保留了我的工作版SASS):

sudo gem install compass