Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile.

前提是你 提交于 2019-11-30 22:02:41

Different methods to solve this issue,

Step1:

gem install rubygems-bundler
gem regenerate_binstubs

Step2:

Remove the vendor/bundle directory.

Run bundle install to rebuild it

Step3:

Try, gem update bundler

Here is a link where the issue got solved. Check this is very useful

Try:

gem install rubygems-bundler

gem regenerate_binstubs

Not really a fundamental solution, but if you really have to run some Rails commands urgently and needs a temporary fix, try bundle exec rails c rather than bin/rails c.

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