捆绑包已锁定到 heroku (3.99.3)

bundle is locked to heroku (3.99.3)

我在我的 rails 项目中输入了 heroku create 然后我将 gem 'pg' 添加到 Gemfile 然后我输入了 bundle 并且这个错误出现在我面前,这个问题的任何解决方案?

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, runbundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Your bundle is locked to heroku (3.99.3), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of heroku (3.99.3) has removed it. You'll need to update your bundle to a version other than heroku (3.99.3) that hasn't been removed in order to install.

我用bundle update

修复了它

heroku gem 的 3.99.3 版本被拉走了。这意味着它不再可用。查看 versions on Rubygems 的列表。

只有版本 3.99.4 仍然可用。通过 运行:

安装
bundle update heroku

您可能要考虑删除 gem,因为它不受支持,并使用新的 heroku CLI 代替。