Rails rake updating issue - Could not find rake-10.4.2 in any of the sources

TomHill

I'm attempting (without much success) to run rake db:migrate on a rails project, however it returns:

Could not find rake-10.4.2 in any of the sources
Run bundle install to install missing gems.

I ran bundle install and worked fine - installed rake 10.4.2, however when I ran: rake --version (for some reason you can't do rake -v ???) and it shows: rake, version 0.9.6

I ran bundle update rake and returned my list of gems and then: Your bundle is updated!

Why isn't rake updating? Is there something I'm doing wrong (I'm new to rails btw - so this is probably really simple)

Any help is really appreciated

Caleb

TL; DR: gem install rake -v '10.4.2'

So, I had this problem myself. I wanted to know why rails s would work yesterday and not today.

First I checked if I was in the correct directory, I was. Then I re-ran bundle install to make sure rake was getting installed. It was, and I was able to see it in my Gemfile.lock So I figured my gemset might be corrupt (I use RVM). rvm gemset empty then bundle install

Still, whenever I ran rails s, I got this error. bin/rails s worked, as well as bundle exec rails s. But I don't want a prefix, I want rails to work (It works in other rails projects)

Eventually I tried gem install rake and it worked! I recommend adding -v '10.4.2' to the command so that you get the correct rake version. Now when I which rake, I get the gemset for my project: "/Users/cm022291/.rvm/gems/ruby-2.2.1@project_gemset/bin/rake"

and when I run rails s the server starts successfully.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Deploying rails - Could not find rake-11.1.2 in any of the sources

From Dev

Rails: Could not find rake-10.1.1 in any of the sources

From Dev

rails s: Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)

From Dev

Capistrano: Could not find rake-$WRONG_VERSION in any of the sources

From Dev

Rubymine - Uncaught exception: Could not find rake-10.1.0 in any of the sources

From Dev

Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

From Dev

Could not find rake-0.9.2 in any of the sources - Ubuntu 16.04

From Dev

Could not find rake-10.3.2 in any of the sources (Bundler::GemNotFound) on HTTPS push

From Dev

Error "Could not find rake-10.5.0 in any of the sources" on Phusion Passenger Docker image

From Dev

error:: could not find rake-11.1.2 in any of the sources run `bundle install` to install missing gems

From Dev

Could not find rake using whenever rails

From Dev

Could not find rake-12.3.0 in any of the sources (Bundler::GemNotFound) - Bitnami Redmine Stack 3.3.1-0 on Ubuntu 16.04.2 LTS

From Dev

ruby on rails 4: could not find table 'table_name' even after a rake db:test:prepare

From Dev

Could not find rake with bundle exec

From Dev

Rails 4 - find_by_* does not work in a rake task

From Dev

No MiniTest rake tasks in rails 4

From Dev

how to run this rake task with 2 args and environment in rails 4?

From Dev

rake aborted! Could not find a JavaScript runtime

From Dev

Puppet: rake spec could not find class ::splunk

From Dev

could not find rake-10.10.1 Bundler::GemNotFound

From Dev

Could not find data file in a Rake task

From Dev

Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

From Dev

Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

From Dev

Rails not finding gem. "Could not find .. in any of the sources"

From Dev

Capistrano -- Could not find *** in any of the sources

From Dev

rails crontab rake javascript runtime not find

From Dev

Ruby on Rails 4 - Using Rake on Heroku

From Dev

rake doesn't work in Rails4

From Dev

rake doesn't work in Rails4

Related Related

  1. 1

    Deploying rails - Could not find rake-11.1.2 in any of the sources

  2. 2

    Rails: Could not find rake-10.1.1 in any of the sources

  3. 3

    rails s: Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)

  4. 4

    Capistrano: Could not find rake-$WRONG_VERSION in any of the sources

  5. 5

    Rubymine - Uncaught exception: Could not find rake-10.1.0 in any of the sources

  6. 6

    Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

  7. 7

    Could not find rake-0.9.2 in any of the sources - Ubuntu 16.04

  8. 8

    Could not find rake-10.3.2 in any of the sources (Bundler::GemNotFound) on HTTPS push

  9. 9

    Error "Could not find rake-10.5.0 in any of the sources" on Phusion Passenger Docker image

  10. 10

    error:: could not find rake-11.1.2 in any of the sources run `bundle install` to install missing gems

  11. 11

    Could not find rake using whenever rails

  12. 12

    Could not find rake-12.3.0 in any of the sources (Bundler::GemNotFound) - Bitnami Redmine Stack 3.3.1-0 on Ubuntu 16.04.2 LTS

  13. 13

    ruby on rails 4: could not find table 'table_name' even after a rake db:test:prepare

  14. 14

    Could not find rake with bundle exec

  15. 15

    Rails 4 - find_by_* does not work in a rake task

  16. 16

    No MiniTest rake tasks in rails 4

  17. 17

    how to run this rake task with 2 args and environment in rails 4?

  18. 18

    rake aborted! Could not find a JavaScript runtime

  19. 19

    Puppet: rake spec could not find class ::splunk

  20. 20

    could not find rake-10.10.1 Bundler::GemNotFound

  21. 21

    Could not find data file in a Rake task

  22. 22

    Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

  23. 23

    Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

  24. 24

    Rails not finding gem. "Could not find .. in any of the sources"

  25. 25

    Capistrano -- Could not find *** in any of the sources

  26. 26

    rails crontab rake javascript runtime not find

  27. 27

    Ruby on Rails 4 - Using Rake on Heroku

  28. 28

    rake doesn't work in Rails4

  29. 29

    rake doesn't work in Rails4

HotTag

Archive