【问题标题】:Could not find coffee-script-source-1.1.3 in any of the sources在任何来源中都找不到 coffee-script-source-1.1.3
【发布时间】:2014-03-30 13:26:59
【问题描述】:

您好,我正在使用 Rails 应用程序,当我捆绑安装时它返回错误:

Could not find coffee-script-source-1.1.3 in any of the sources

我知道 coffee-script-source-1.1.3 gem 已被弃用/取消,但我的其他 gem 与此有依赖关系。

但是这个项目正在使用其他机器并在 heroku 生产中。 如何在不更改我的 gemfile 的情况下成功捆绑安装它? 谢谢

【问题讨论】:

  • 可以托管自己的 gem 源并将该源添加到 Gemfile 吗?

标签: ruby-on-rails ruby coffeescript


【解决方案1】:

对我有用的是将 gem 更新1.2.0

正如这里显示的https://rubygems.org/gems/coffee-script-source/versions 1.1.3 说它被拉了。

gem 'coffee-script-source', '~> 1.2.0'

然后运行

bundle update --source coffee-script-source

【讨论】:

    【解决方案2】:

    运行这个:

    bundle update --source coffee-script-source
    

    如果出现错误,如下所示:

    An error occurred while installing rmagick (2.13.1), and Bundler cannot continue.
    

    运行这个:

     gem install rmagick
    

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-22
      • 1970-01-01
      • 1970-01-01
      • 2018-01-31
      • 2012-03-12
      • 2013-12-25
      • 2017-07-18
      • 2012-07-22
      相关资源
      最近更新 更多