问题描述
我正在尝试按照以下说明从 rails 4.2 升级到 rails 5:
https://hashrocket.com/blog/posts/how-to-upgrade-to-rails-5
当我运行 bundle update rails
时,我收到以下错误并且不知道如何修复它们。我试过了,删除我的锁文件,然后再次运行它。
请帮忙!
Bundler Could not find compatible versions for gem "rails":
In Gemfile:
rails (< 5.1,>= 5.0.0.rc2)
engine1 was resolved to 0.0.1,which depends on
engine2 was resolved to 0.0.1,which depends on
engine3 was resolved to 0.0.1,which depends on
engine4 was resolved to 0.0.1,which depends on
rails (~> 4.2)
编辑 -
我尝试通过运行 bundle update rails
命令更新引擎中的 rails 版本,但它显示消息 -
Bundler attempted to update rails but its version stayed the same
除了 rails,所有其他 gem 都会更新。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)