首页 > 解决方案 > Error Running IRB from Terminal on Mac - Can't find gem

问题描述

When I type irb into terminal all I get is this:

Traceback (most recent call last):
    2: from /usr/local/opt/ruby/bin/irb:23:in `<main>'
    1: from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/site_ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': can't find gem irb (>= 0.a) with executable irb (Gem::GemNotFoundException)

I think it might be something to do with the gem library or version but can't figure it out. I am new to this and don't want to further mess things up, any help would be greatly appreciated! Thanks in advance!

标签: ruby-on-railsrubymacosterminalrubygems

解决方案


推荐阅读