我在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, run
捆绑锁--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.
答案 0 :(得分:2)
3.99.3
宝石的版本heroku
被取消。这意味着它不再可用。请参阅versions on Rubygems的列表。
仅版本3.99.4
仍然可用。通过运行安装它:
bundle update heroku
您可能要考虑删除该gem,因为它不受支持,请改用新的heroku CLI
。
答案 1 :(得分:0)
我使用bundle update