You have already activated rake 0.9.0, but your Gemfile requires rake 0.8.7

后端 未结 9 1528
孤街浪徒
孤街浪徒 2020-12-07 08:54

I\'m trying to run rails project, I get

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

If I

相关标签:
9条回答
  • 2020-12-07 09:22

    Specify the version that you want in your Gemfile.

    gem 'rake', '0.9.0' 
    

    then

    bundle update rake
    

    you need to use bundle exec to run your rake task

    bundle exec rake db:migrate
    
    0 讨论(0)
  • 2020-12-07 09:29

    First, check to make sure that rake is mentioned in your Gemfile. If it's not, add it, and specify the version "you already activated".

    Then, you'll need to tell bundle to update the rake version it's using for your app:

    bundle update rake
    

    It'll update your Gemfile.lock for you.

    0 讨论(0)
  • 2020-12-07 09:29

    Add this to your Gemfile

    # Rake 0.9.0 break Rails.
    gem "rake", "!= 0.9.0"
    

    And then uninstall rake-0.9.0

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