简体   繁体   English

Rails,尝试从 github 安装分叉的 gem 挂起捆绑器

[英]Rails, trying to install forked gem from github hangs bundler

I have found fork of one gem in github, which is more up to date.我在 github 中找到了一个 gem 的 fork,它是最新的。 I wanted to install this fork to my rails project.我想将这个 fork安装到我的 rails 项目中。 So I have added this line of code to my Gemfile :所以我在我的Gemfile添加了这行代码:

gem 'rootapp-wkhtmltopdf-binary', github: 'Root-App/wkhtmltopdf_binary_gem'

When I run bundle install , it just hangs at fetching.当我运行bundle install ,它只是在获取时挂起。

Why does this happen?为什么会发生这种情况?

bundler is not actually hanging, it is downloading the content of the repository in the background. bundler 实际上并没有挂起,它正在后台下载存储库的内容。

The repo-content seems to be of a significant size (multiple megabyte).回购内容似乎很大(多兆字节)。 Depending on your connection you will have to wait a while for bundler to finish downloading.根据您的连接,您将不得不等待捆绑器完成下载。 Afterwards it should install the gem as usual.之后它应该像往常一样安装 gem。

Unfortunately bundler is not giving any feedback on this, even when you invoke bundler in verbose mode bundle install --verbose不幸的是,bundler 没有对此提供任何反馈,即使您在详细模式中调用 bundler bundle install --verbose

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM