Bundle Install Fail

编程入门 行业动态 更新时间:2024-10-27 02:29:18
Bundle Install Fail-Rails教程(Bundle Install Fail- Rails Tutorial) bundle install Fetching source index for http://rubygems.org/ Could not find gem 'annotate-models (= 1.0.4) ruby' in any of the gem sources listed in your Gemfile.

但显然它在我的gemfile中,不是吗?

来源'http://rubygems.org'

gem 'rails', '3.0.0' gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' gem 'gravatar_image_tag', '0.1.0' gem 'will_paginate', '3.0.pre2' gem 'annotate' group :development do gem 'rspec-rails', '2.0.1' gem 'annotate-models', '1.0.4' gem 'faker', '0.3.1' end

我添加了gem'annotate'并试图在堆栈上的其他地方推荐但没有成功。 知道为什么它无法在源头找到宝石吗? 我怎么能手动覆盖这个? 谢谢。

bundle install Fetching source index for http://rubygems.org/ Could not find gem 'annotate-models (= 1.0.4) ruby' in any of the gem sources listed in your Gemfile.

But clearly its in my gemfile, isn't it?

source 'http://rubygems.org'

gem 'rails', '3.0.0' gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' gem 'gravatar_image_tag', '0.1.0' gem 'will_paginate', '3.0.pre2' gem 'annotate' group :development do gem 'rspec-rails', '2.0.1' gem 'annotate-models', '1.0.4' gem 'faker', '0.3.1' end

I added gem 'annotate' and attempted what was recommended elsewhere on stack with no success. Any idea why it can't find the gem at the source? How could I manually override this? Thanks.

最满意答案

你得到的错误是因为rubygems.org上不存在名为“annotate-models”的宝石。

您的意思是使用注释还是注释 _模型? 他们都没有发布1.0.4版本,所以我不确定你在寻找什么样的宝石。

You're getting that error because a gem named "annotate-models" does not exist on rubygems.org.

Did you mean to use annotate or maybe annotated_models instead? Neither one of them has a version 1.0.4 published, so I'm not sure what gem you're looking for.

更多推荐

本文发布于:2023-08-05 14:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1434739.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Bundle   Install   Fail

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!