0

不知何故,我弄乱了我的 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 命令对其进行故障排除。如果有人可以指导我完成整个过程,我愿意卸载并重新安装所有内容。

4

0 回答 0