不知怎的,我在我的Mac(OS X 10.9)上搞砸了grunt / ruby配置。当我试图运行grunt时,我现在收到以下错误:
/Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `open': No such file or directory - repos (Errno::ENOENT)
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `entries'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/project.rb:18:in `generate_files'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `block in <class:Server>'
from /Library/Ruby/Gems/2.0.0/gems/sinatra-1.4.4/lib/sinatra/base.rb:1393:in `configure'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:13:in `<class:Server>'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:2:in `<module:Grunt>'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/lib/grunt/server.rb:1:in `<top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/grunt-0.0.6/bin/grunt:5:in `<top (required)>'
from /usr/bin/grunt:23:in `load'
from /usr/bin/grunt:23:in `<main>'
任何人都有任何错误的想法?我已经在〜/ .rbenv中安装了最新版本的ruby,因为Mac不适合新版本。我之前运行过这个,但是我的.zshrc文件出错了,并且使用各种gem,npm和brew命令来解决所有问题。如果有人能指导我完成整个过程,我愿意卸载并重新安装所有内容。