I kinda messed up when trying to solve a problem.
I was looking up some solutions to solve this problem
cap staging deploy
rbenv: cap: command not found
The `cap' command exists in these Ruby versions:
3.0.0
One solution I came across has something to do with gem install bundler
To check my gem bundler, I ran gem list bundler
which listed nothing so I ran gem install bundler
which installed bundler (2.2.23)
.
However, when I ran bundle install
, I get this:
Traceback (most recent call last):
2: from /Users/kiki/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
1: from /Users/kiki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:308:in `activate_bin_path'
/Users/kiki/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
So I wanted to uninstall/undo the steps I took. However, typing in gem uninstall bundler
and gem uninstall bundler -v 2.2.23
didn't work! It kept returning Gem 'bundler' is not installed
and in fresh terminal, when I ran the command again, it returns Gem bundler-2.2.23 cannot be uninstalled because it is a default gem
.
How do I fix it?