Deactivate a Gem - “you have already activated rake 0.9.3.beta.1, but my Gemfile requires rake 0.9.2”

后端 未结 3 2117
深忆病人
深忆病人 2021-02-13 14:12

I\'m trying to run a migration but I keep getting the error message that is:

rake aborted! Undefined method prerequisite for nil:NilClass.

It s

相关标签:
3条回答
  • 2021-02-13 14:29

    One other way that worked for me was, went to the Gemfile.lock and changed Rake version from 0.9.2.2 to 0.9.3.beta.1.

    0 讨论(0)
  • 2021-02-13 14:36

    Try to remove your Gemfile.lock file and run bundle install again.

    0 讨论(0)
  • 2021-02-13 14:50

    I had the same issue and solved with the help of links below. They can help understanding some concepts regarding this specific question and how and why to use bundle exec rake db:migrate.

    You have another option to use gem uninstall rake and then select the version you want to remove.

    Read Before installing rails 3.1

    Rake 0.9 and gem version constraints by David Chelimsky

    0 讨论(0)
提交回复
热议问题