【问题标题】:`highline` gem is already installed, but `commander` refuses to install`highline` gem 已经安装,但是 `commander` 拒绝安装
【发布时间】:2012-05-03 08:19:53
【问题描述】:

当我输入gem install commander 时,我得到:

Error installing commander:
commander requires highline (~> 1.6.11)

我什至做了gem install highline ("Successfully installed highline-1.6.11"),我得到了同样的错误。此错误的原因可能是什么?

【问题讨论】:

  • 您使用的是bundle 和/或rvm?也许您安装了正确的highline 版本,但正在加载其他版本。
  • @fguillen:你是个天才。我在bundle exec bash 会话中。退出使其工作。
  • 没有,但我很高兴你解决了你的问题 :)
  • @fguillen,你想写一个答案让我接受吗?

标签: ruby gem highline


【解决方案1】:

检查您是否在适当的bundle 和/或rvm 会话上下文中。

也许您在一个上下文中安装了正确的 highline 版本,但 gem 是从另一个上下文加载的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多