本文介绍了Grunt任务指南针失败 - 找不到RubyGem指南针(> = 0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将机器从iMac转移到了新的Mac Book Pro和Mavericks。一切都很好,但我注意到,当我保存一个文件时,Grunt崩溃了(自动更新不起作用)。我试图更新我的系统,但是当我通过终端运行我的grunt任务时,出现以下错误:

 运行指南针:开发(罗盘)任务
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in`report_activate_error:找不到RubyGem罗盘( > = 0)(GEM :: LoadError从/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in`)
激活 $从/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in'宝石
b $ b从/ usr / bin中/指南针:18

有没有人有任何建议如何解决这个问题?我从我的项目中删除了指南针并完成了npm安装,没有任何改变。



当我运行 $ gem list 时,我得到以下结果:

  ***本地GEMS *** 

bigdecimal(1.2.0)
捆绑器(1.5.1)
捆绑器(1.2.2)
可执行文件钩子(1.2.6)
gem-wrappers(1.2.4,1.2.1)
io-console(0.4.2)$ b $ (1.7.7)
minitest(4.3.2)
psych(2.0.0)
耙(0.9.6)
rdoc(4.0.0)
ruby​​gems-bundler(1.4.2)
rvm(1.11.3.8)
test-unit(2.0.0.0)

然后我尝试运行 $ sudo gem update --system 但是我得到了以下响应:目前的最新版本安装。取消。



任何想法,任何人?

解决方案

这是我必须做的。我卸载并重新安装了sass和compass,然后运行: bundle update i18n



在此之后,一切似乎都奏效! p>

I recently transfered machines from an iMac to a new Mac Book Pro with Mavericks. All was well but I noticed that Grunt was crashing when I saved a file (the auto update wasn't working). I tried to update my system but when I run my grunt tasks via the terminal I get the following error:

Running "compass:dev" (compass) task
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem compass (>= 0) (Gem::LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:211:in `activate'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem'
    from /usr/bin/compass:18

Would anyone have any advice on how to fix this? I have removed compass from my project and done an npm install, nothing has changed.

When I run $ gem list I get the following:

*** LOCAL GEMS ***

bigdecimal (1.2.0)
bundler (1.5.1)
bundler-unload (1.0.2)
executable-hooks (1.2.6)
gem-wrappers (1.2.4, 1.2.1)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-bundler (1.4.2)
rvm (1.11.3.8)
test-unit (2.0.0.0)

I then tried running $ sudo gem update --system but I got hte following response: Latest version currently installed. Aborting.

Any ideas, anyone?

解决方案

this is what I had to do. I uninstalled and reinstalled sass and compass then run: bundle update i18n

Everything seemed to work after that!

这篇关于Grunt任务指南针失败 - 找不到RubyGem指南针(> = 0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-06 07:58