Could not find rake with bundle exec

前端 未结 4 1580
灰色年华
灰色年华 2021-01-02 14:21

When I try execute \'bundle exec rake anything\', I get error:

Could not find rake-10.1.0 in any of the sources.
Run `bundle install` to install mis         


        
相关标签:
4条回答
  • 2021-01-02 15:10

    I have the same problem and my solution was: Delete my gemfile.lock

    rm Gemfile.lock
    

    donwgrade rake in my gemfile

    gem 'rake', '10.0.2'
    

    finally

    bundle install
    
    0 讨论(0)
  • 2021-01-02 15:14

    I had the same issue, with exactly the same error message, with the same Ruby version yesterday. I solved it by removing this line from .bundle/config in my repository:

    BUNDLE_DISABLE_SHARED_GEMS: '1'
    
    0 讨论(0)
  • 2021-01-02 15:18

    I got a similar error when I tried running 'bundle exec $EXECUTABLE' without running 'bundle install' first :|

    0 讨论(0)
  • 2021-01-02 15:20

    I had this problem with an AWS instance, managed by OpsWorks. I was logged in as ec2user. I switched over to the deploy user via sudo su - deploy and ran the bundle command again and it completed without error

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