Farhan Salam
Farhan Salam

Reputation: 1485

Could not be found in any of the sources listed in your Gemfile

Your bundle is locked to faker (1.6.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 faker (1.6.3) has removed it. You'll need to update your bundle to a different version of faker (1.6.3) that hasn't been removed in order to install.
Run `bundle install` to install missing gems.

I am getting this error even if i install 1.6.3 or 1.6.5 or 1.6.6.

gem list has faker (1.6.6, 1.6.3)

bundle env

gem install faker works fine, and installs the latest 1.6.6

I get this error while running rails server and console.

Upvotes: 1

Views: 4281

Answers (2)

Farhan Salam
Farhan Salam

Reputation: 1485

it worked!!!

bundle install --binstubs

bundle exec rails c

Upvotes: 1

Deepak Mahakale
Deepak Mahakale

Reputation: 23671

Make sure you have added source in your Gemfile

source 'https://rubygems.org'

gem 'faker', '~> 1.6.3'

Then run

bundle update faker

This should solve your issue

Upvotes: 0

Related Questions