【问题标题】:Gemfile still looking for a gem I removed from GemfileGemfile 仍在寻找我从 Gemfile 中删除的 gem
【发布时间】:2012-08-20 00:49:56
【问题描述】:

我对 Ruby on Rails 还很陌生,但我仍在琢磨它是如何工作的。抱歉,如果这是一个简单的问题,但是:

当他们提到在我的 Gemfile 中启用“therubyracer”gem 时,我正在关注关于将我的 Rails 应用程序部署到 EC2 的教程。我在让服务器与 Gemfile 中的这个 gem 一起运行时遇到了问题,所以我删除了它,但它仍在寻找它并出错。

我的问题是为什么?它是否缓存在我需要清除的地方?我运行了“捆绑安装”和“捆绑更新”,它们都对我产生了影响。当我尝试启动“rails server”时也是如此

这是我从终端运行“rails server”时得到的输出。

/Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find therubyracer-0.10.1 in any of the sources (Bundler::GemNotFound)
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `map!'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `materialize'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:127:in `specs'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/environment.rb:27:in `specs'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:41:in `candidate?'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:60:in `setup'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'
from /Users/chris/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /Users/chris/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /Users/chris/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /Users/chris/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:9:in `<main>'

【问题讨论】:

标签: ruby-on-rails rubygems gem bundler therubyracer


【解决方案1】:

好吧,愚蠢地,我在发布这个关于我所面临的确切问题后发现了一个线程。我很确定它与 Twitter Bootstrap 相关。

When I do "bundle update", I get an error from a gem not in my gemfile. How do I ignore this dependency?

【讨论】:

  • 是的,就是这样。忽略此帖。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-06
  • 1970-01-01
  • 2011-05-28
  • 2012-08-19
  • 1970-01-01
相关资源
最近更新 更多