我正在运行bundle install --local
并收到以下错误:
Your bundle is locked to rake (11.2.2), but that version could not be found in
any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of rake (11.2.2) has removed it. You'll need to update your
bundle to a different version of rake (11.2.2) that hasn't been removed in order to install.
无法解读需要做什么。 任何帮助都将受到高度赞赏。
答案 0 :(得分:4)
尝试运行这些命令
gem install rubygems-bundler
gem regenerate_binstubs
答案 1 :(得分:1)
我在使用Jenkins时遇到了这个问题,所以这就是帮助我的原因:
首先通过控制台到你的工作目录:
cd /var/lib/jenkins/workspace/<your-job-name>
如果您不确定Jenkins存储项目的位置,请在bash脚本中使用pwd
命令。
在此目录中,找到您的Gemfile.lock并将其删除
rm Gemfile.lock
然后尝试像通常从控制台那样运行bundle
bundle install
看到你的捆绑工作。希望它可以帮助某人解决问题。