简体   繁体   English

即使我已安装Rails,也无法找到exception_notification gem

[英]Rails can't find exception_notification gem even though I have it installed

I recently installed the exception_notification plugin/gem (I'm confused as to whether it's properly install as a plugin or as a gem) and I'm getting this: 我最近安装了exception_notification插件/ gem(我对它是作为插件还是作为gem正确安装感到困惑),而我得到了:

Could not find exception_notification-2.4.1 in any of the sources (Bundler::GemNotFound)

This is in spite of the fact that I already have that version of the gem installed: 尽管事实上我已经安装了该版本的gem:

$ gem list | grep exception_notification
exception_notification (2.5.2, 2.4.1)

Any ideas? 有任何想法吗?

Maybe you're using a vendored bundle? 也许您正在使用供应商捆绑包?

If so, it sounds like you just need to run 如果是这样,听起来您只需要运行

bundle install

In your rails directory. 在您的rails目录中。 (Assuming you've already added that gem to your Gemspec). (假设您已经将该宝石添加到了Gemspec中)。

http://gembundler.com/rails3.html http://gembundler.com/rails3.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Rails中替代不推荐使用的exception_notification gem? - Alternative to deprecated exception_notification gem in Rails? 即使已安装,Rails也找不到NodeJS - Rails Can't Find NodeJS Even Though it is Installed Ruby on Rails:即使已安装gem仍未找到 - Ruby on Rails: gem not found even though it is installed Rails找不到已安装的gem - Rails can't find installed gem 即使安装了正确的gem,rails中的NoMethodError也是如此 - NoMethodError in rails even though correct gem is installed 来自exception_notification gem的未初始化常量ActiveRecord - uninitialized constant ActiveRecord from exception_notification gem 即使命令行显示已安装,Rails也无法找到Idenfity(ImageMagick) - Rails can't find Idenfity (ImageMagick) even though commandlines shows it's installed 脚本/控制台不起作用; 报告“缺少Rails宝石。 即使rails显示为已安装,也请`gem install -v = rails ......” - script/console won't work; reports “Missing the Rails gem. Please `gem install -v= rails`…” even though rails shows as installed 缺少Rails 2.3.4宝石。 即使它已安装! - Missing the Rails 2.3.4 gem. Even though it's installed! exception_notification中的多个收件人 - multiple recipient in exception_notification
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM