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
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.