【问题标题】:Rails bundle install Could not find turbo-rails-7.1.1 in any of the sourcesRails bundle install 在任何源中都找不到 turbo-rails-7.1.1
【发布时间】:2021-12-21 19:00:05
【问题描述】:

在运行 Ubuntu 20.10 的全新 digitalocean droplet 和运行 bundle install 的全新的非常接近空的 rails 7 alpha 2 应用程序上运行 cap production deploy 在我的本地计算机上和从命令 shell 运行时,结果如下水滴

Fetching gem metadata from https://rubygems.org/............
Could not find turbo-rails-7.1.1 in any of the sources

我在本地对此没有任何问题,因此这必须是生产服务器上的环境问题或我在这里错过的某些配置选项。 我正在使用正确配置的最新稳定 rvm,

rvm gemset list

gemsets for ruby-3.0.0 (found in /home/comtechmaster/.rvm/gems/ruby-3.0.0)
   (default)
   global
=> master_cms
 

我使用 capistrano 脚本部署应用程序,并使用 nvm 安装了最新的稳定版本节点。 Bundler 在两个环境中都是相同的版本,并且 turbo-rails-7.1.1 没有出现在我的 gemfile.lock 中的任何位置

【问题讨论】:

    标签: ruby-on-rails bundler ruby-on-rails-7


    【解决方案1】:

    我也遇到了这个。不知道为什么,但他们取消了 7.x 版本并退回到 0.8.x:

    https://rubygems.org/gems/turbo-rails/versions/7.1.1

    只需将其添加到您的 Gemfile 中:

    gem 'turbo-rails', '~> 0.8'
    

    然后运行./bin/bundle update turbo-rails,你应该会很好。

    【讨论】:

    • 太棒了,非常感谢,辛苦了
    • Release 说其他版本是:made in error
    • ~> 0.9 已于 11 月 24 日发布。
    • 现在通过在 gemfile 中添加 gem 'turbo-rails', '~> 0.9.1' 来升级它
    【解决方案2】:

    在我的情况下,删除 Gemfile.lock 并再次运行安装。

    【讨论】:

    • 我很高兴这对你有用,我相信它会帮助其他人,我接受的答案是唯一对我有用的解决方案
    • 很确定删除 Gemfile.lock 不会更正从 7.x 到 0.x 的猛拉版本
    猜你喜欢
    • 2014-03-02
    • 2018-08-01
    • 2013-06-22
    • 1970-01-01
    • 1970-01-01
    • 2018-08-01
    • 2015-04-03
    • 2013-02-23
    • 2012-03-30
    相关资源
    最近更新 更多