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

前端 未结 2 1178
花落未央
花落未央 2021-02-07 01:31

I\'ve created a gem, and for some reason this one keeps bugging me, and refuses to install properly through bundler.

Here\'s the Gemfile:

source         


        
2条回答
  •  猫巷女王i
    2021-02-07 01:49

    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

提交回复
热议问题