Bundler cannot find a version of a gem, but gem install with the same name works

痞子三分冷 提交于 2019-12-03 05:43:11

And after a whole day of googling I found this status update from Dec 12: http://twitter.com/rubygems_status/status/279019743166476288

bundle install --full-index

Seems to get the index directly from rubygems instead of from a cloudfront cache.

I had a look at the index, and there is quite a diffence in the two indexes, so if you just released a gem or use a newly released gem, you might have to add --full-index in order to get the proper index.

Do you have rubygems listed as a remote source?

Your Gemfile should have source :rubygems at the top of the file, and $ gem sources should return at a minimum:

*** CURRENT SOURCES ***

http://rubygems.org/

If it's not listed, you can add it with $ gem sources -a http://rubygems.org

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!