Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gem::LoadError: Rake?

I'm trying to run rake db:migrate locally but I'm getting the below error:

Gem::LoadError: You have already activated rake 10.2.2, but your Gemfile requires rake 10.1.1. Using bundle exec may solve this.

Not sure why this is happening? It came out of no where.

Any idea how to resolve this?

Cheers

like image 663
user3399101 Avatar asked Dec 02 '22 16:12

user3399101


1 Answers

You can delete your Gemfile.lock. Then run bundle install and bundler will recreate updated Gemfile.lock with correct rake.

I just did that and this worked for me.

like image 187
Dmitry J Avatar answered Dec 27 '22 05:12

Dmitry J