【问题标题】:Rails is not installing any gemRails 没有安装任何 gem
【发布时间】:2017-04-01 11:59:45
【问题描述】:

每当我尝试安装任何 gem 并捆绑安装时,它都会给我:

按照 bundle update rails 的捆绑说明(我不应该这样做),我得到:

【问题讨论】:

  • 先尝试安装rails gem gem install rails -v 5.0.1
  • 但是我在开始这个项目时已经安装了 5.0.1 版本。
  • 您是否尝试过先删除 Gemfile.lock 文件?是bundle update 还是bundle install 的输出?
  • @TalhaMeh 正如 Anwar 所说,您需要尝试删除 Gemfile.lock,然后尝试捆绑安装。

标签: ruby-on-rails rubygems bundle ruby-on-rails-5


【解决方案1】:

解决此问题的步骤:-

  1. 删除 Gemfile.lock
  2. 运行捆绑安装。

【讨论】:

    【解决方案2】:

    我认为你只需要运行bundle update

    【讨论】:

    • 我已经说过 bundle update rails 不起作用。而 bundle update 将更新所有我不想要的 gem。
    猜你喜欢
    • 2013-04-28
    • 2020-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-02
    • 1970-01-01
    • 2013-01-19
    相关资源
    最近更新 更多