bundle-install-报错,作者从库中删除需要的gem包,例如,mimemagic


例子: mimemagic (0.3.3) 的作者将它从gems库里面删除了,再bundle install mimemagic -v 0.3.3 版本会报错.

  • 报错信息
1
2
3
4
5
Resolving dependencies...
Your bundle is locked to mimemagic (0.3.3), 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
mimemagic (0.3.3) has removed it. You'll need to update your bundle to a version other than
mimemagic (0.3.3) that hasn't been removed in order to install.
  • 处理办法
  1. 到github 找到 mimemagic 项目地址: https://github.com/mimemagicrb/mimemagic
  2. 找到 mimemagic (0.3.3) 对应的hash后,修改Gemfile:
1
gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: 'd5ebc0cd846dcc68142622c76ad71d021768b7c2'