Rails: Error running 'bundle' command

前端 未结 2 431
执笔经年
执笔经年 2021-01-16 15:21

I am running bundle install --local and getting the following error:

Your bundle is locked to rake (11.2.2), but that version could not be found i

相关标签:
2条回答
  • 2021-01-16 15:52

    Try running these commands

    gem install rubygems-bundler
    gem regenerate_binstubs
    
    0 讨论(0)
  • 2021-01-16 16:03

    I encountered this problem also while using Jenkins, so here is what helped me:

    First go through console to your job directory:

    cd /var/lib/jenkins/workspace/<your-job-name>
    

    If you are not sure where Jenkins stores your project, use pwd command inside your bash script.

    In this directory, find your Gemfile.lock and delete it

    rm Gemfile.lock
    

    then try running bundle as you would usually do from console

    bundle install
    

    And see your bundle working. Hope it helps someone to solve the issue.

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