指南针在Ruby更新后不再工作



前几天安装 RVM 后,我不能再使用compass watch了。

我尝试更新系统,再次安装指南针,以及sass,都无济于事。

这是我在终端中遇到的错误:

/Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/definition.rb:16:in `build': /Gemfile not found (Bundler::GemfileNotFound)
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:148:in `definition'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:116:in `setup'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/gems/compass-0.12.2/bin/compass:26:in `<top (required)>'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `load'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/compass:23:in `<main>'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
    from /Users/john/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'

我试图根据此问题使用bundle update sass-rails,但得到错误Could not locate Gemfile

我也试图遵循这里的建议,但无济于事。

在这一点上,我有点迷茫。我是 Ruby 世界和 RVM 的新手,并不是最熟练的终端用户。

感谢您的任何帮助或见解-

/Gemfile not found是旧版 gem rubygems-bundler中的一个错误,请运行:

rvm @global do gem update rubygems-bundler

它应该工作正常

我没有关于如何解决问题本身的答案,但我确实暂时简单地删除了它。

根据这篇文章,我用rvm implode从我的机器中删除rvm

在那之后一切都很好。不幸的是,这会延迟我对 Ruby 世界的实验,因为我没有时间弄清楚如何在没有它似乎带来的复杂性的情况下拥有 RVM。

最好

最新更新