我昨天安装了RVM,现在我无法运行Compass,我收到以下错误。
compass watch skin/frontend/default/default/
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'compass' (>= 0) among 13 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /usr/local/bin/compass:22:in `<main>'
我想我需要更新指南针和/或sass配置?但我不确定如何。
$ which -a gem
/Users/holy/.rvm/rubies/ruby-2.3.0/bin/gem
/usr/bin/gem
答案 0 :(得分:1)
最后我只是设置RVM使用系统Ruby和Compass再次工作,命令是:
{{1}}
答案 1 :(得分:0)
尝试重新安装sass和指南针?对不起,可能是明显的答案