2011-09-25 106 views
0

如果我知道存在gem的github存储库,但是在终端中,我无法安装通过“gem install”或“bundle install”安装gem,因为它失败,出现以下错误:无法安装“refinerycms-membershiphips”gem

Could not find gem 'refinerycms-memberships (= 1.0)' in any of the gem sources listed in your Gemfile. 

我找不到它的任何rubygems.org,那么有没有得到它。如果你使用bundle install然后安装:(

回答

1

任何其他方式我假设你使用Gemfile进行安装,在这种情况下,你可以使用specify a git repo

gem refinerycms-memberships, :git => "git://path.to/git/repo" 
+0

感谢您快速回答 –

1

专门为这个宝石,我发现我的Gemfile这条线为我工作:

gem 'refinerycms-memberships', '~> 2.0.0', :git => 'https://github.com/rbriank/refinerycms_membership.git'

取决于当你看到这篇文章,你可能需要修改的版本或可能添加

:branch => ....选项。