Rails: Error running 'bundle' command

前端 未结 2 425
执笔经年
执笔经年 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 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/
    

    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.

提交回复
热议问题