rake aborted! You have already activated rake 10.0.2, but your Gemfile requires rake 0.9.2.2

前端 未结 8 790
终归单人心
终归单人心 2021-01-31 17:33

I am trying to do \"rake db:migrate\" and it is giving me this error.

Andy:AcademyAir Andy$ rake db:migrate
/Users/Andy/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.         


        
8条回答
  •  遥遥无期
    2021-01-31 18:13

    Try this bundle exec rake db:migrate

    Remove rake 10.0.2 gem

    By using gem uninstall rake and remove 10.0.2 version of rake gem

    And Then Try rake db:migrate

    Why Error comes : In you gem list two version (10.0.2 and 0.9.2.2) of rake gem install so that this error comes.*

    Another Solution is you can do bundle update

提交回复
热议问题