【发布时间】:2014-11-10 19:25:21
【问题描述】:
如何在本地安装托管在 GitHub 上的私有存储库中的 gem?
特别是,我们通过gem install 命令安装它,而不是在 Bundler 中使用,因为它是一个命令行工具。
我试过这样做:
gem install githubname-repo -s https://github.com/githubname/repo.git
还有这个:
gem install repo -s https://github.com/githubname/repo.git
没有成功...我只收到一条 404 消息:
ERROR: Could not find a valid gem 'githubname-repo' (>= 0), here is why:
Unable to download data from https://github.com/githubname/repo.git/ - bad response Not Found 404 (https://github.com/githubname/repo.git/latest_specs.4.8.gz)
谢谢!
【问题讨论】: