升级时破碎的宝石

时间:2015-02-17 03:25:49

标签: gruntjs rubygems

我尝试更新我的一个宝石并遇到了很多问题。我安装RVM(osx)认为它可以解决一些问题 - 它没有。 运行我的grunt命令时,我将其作为输出:

    Warning: Running "jekyll:server" (jekyll) task
`bundle exec jekyll build --source app --destination .jekyll --config _config.yml` was initiated.

Jekyll output:
Warning: Command failed: /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:385:in `block in require_program': program version required (Commander::Runner::CommandError)
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:384:in `each'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:384:in `require_program'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/runner.rb:52:in `run!'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/delegates.rb:8:in `run!'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/commander-4.1.6/lib/commander/import.rb:10:in `block in <top (required)>'
/Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `require'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `<module:YAML>'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:132:in `<top (required)>'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/lib/jekyll.rb:21:in `require'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/lib/jekyll.rb:21:in `<top (required)>'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/bin/jekyll:7:in `require'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/gems/jekyll-1.3.1/bin/jekyll:7:in `<top (required)>'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `load'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/jekyll:23:in `<main>'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/Amit/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
 Use --force to continue.

有人可以帮我解决/解决这个问题吗?我应该重新开始吗?我的构建是在安装RVM之前生成的。

1 个答案:

答案 0 :(得分:0)

我运行'rvm reset和'rvm版本,似乎解决了我的问题。不太确定发生了什么 - 我相信红宝石版本很混乱。