[英]Failed to install gems via bundler Heroku, devise 4.5.0 not available
I'm trying to push my rails app to heroku but it keeps failing, it specifies that devise 4.5.0 is not available, yet in my other apps it has that same version of devise and i have no problems deploying to heroku. 我正在尝试将我的rails应用程序推送到heroku但它仍然失败,它指定设备4.5.0不可用,但在我的其他应用程序中它具有相同版本的设备,我没有问题部署到heroku。
Fetching gem metadata from https://rails-assets.org/...
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rails-assets.org/..
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rails-assets.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching gem metadata from https://rails-assets.org/...
Fetching version metadata from https://rails-assets.org/..
Your bundle is locked to devise (4.5.0), 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 devise (4.5.0) has removed it. You'll need to update your
bundle to a different version of devise (4.5.0) that hasn't been removed in order to install.
! Failed to install gems via Bundler.
! Push rejected, failed to compile Ruby app.
! Push failed
solved it by doing this 通过这样做解决了它
1.Remove your Gemfile.lock file using this command rm -rf ~/.bundle/ ~/.gem/ .bundle/ Gemfile.lock 1.使用此命令删除您的Gemfile.lock文件rm -rf~ / .bundle /〜/ .gem / .bundle / Gemfile.lock
2.Remove 'gem name' from your Gemfile. 2.从你的Gemfile中删除'gem name'。
3.Add gem back to your Gemfile. 3.将gem添加回您的Gemfile。
4.bundle install. 4.bundle安装。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.