在您的 Gemfile 中列出的任何来源中都找不到
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.
即使我安装 1.6.3
或 1.6.5
或 1.6.6
.
,我也会收到此错误
gem list
有 faker (1.6.6, 1.6.3)
gem install faker
工作正常,并安装最新的 1.6.6
我在 运行 rails server 和 console.
时收到此错误
确保您已在 Gemfile 中添加源代码
source 'https://rubygems.org'
gem 'faker', '~> 1.6.3'
然后运行
bundle update faker
这应该可以解决您的问题
成功了!!!
bundle install --binstubs
bundle exec rails c
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.
即使我安装 1.6.3
或 1.6.5
或 1.6.6
.
gem list
有 faker (1.6.6, 1.6.3)
gem install faker
工作正常,并安装最新的 1.6.6
我在 运行 rails server 和 console.
时收到此错误确保您已在 Gemfile 中添加源代码
source 'https://rubygems.org'
gem 'faker', '~> 1.6.3'
然后运行
bundle update faker
这应该可以解决您的问题
成功了!!!
bundle install --binstubs
bundle exec rails c