![](/img/trans.png)
[英]Could not find gem 'jquery-rails (>= 0, runtime)' in any of the gem sources listed in your Gemfile. Trying to start rails server
[英]I got this error when I publish my gem: “Could not find gem 'uix_validations (~> 0.5.0)' in any of the gem sources listed in your Gemfile.”
我只是在rubygems.org上发布我的gem, 这是链接 。 一切看起来不错。
但是,当我尝试使用gem 'uix_validations', '~> 0.5.0'
添加到项目时,在捆绑安装时出现此错误:
Could not find gem 'uix_validations (~> 0.5.0)' in any of the gem sources listed
in your Gemfile
而且我不知道如何解决此问题。
我使用以下步骤发布:
gem build uix_validations.gemspec
生成一个文件: uix_validations-0.5.0.gem
并发布:
gem push uix_validations-0.5.0.gem
您的Gemfile中可能没有正确的来源。
在指定宝石之前,应先定义红宝石的来源。 这通常在第一行中完成。
例
source 'https://rubygems.org'
gem 'uix_validations'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.