I was following the install process for jekyll on macOS. However, I think I might have accidentally installed too many copies or versions of ruby.
I am currently on macOS Monterey, Version 12.3.1.
I wanted to see how many versions of ruby I have. I entered a few commands, and here are the results:
The output would be
ruby-3.1.2 ruby-3.1.3 ruby-3.2.0
I also tried the command
which -a ruby
Which gave me
One more command I used was
Which gave me this, I don’t know if it is useful or not:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion source /usr/local/opt/chruby/share/chruby/chruby.sh source /usr/local/opt/chruby/share/chruby/auto.sh chruby ruby-3.1.2 # run chruby to see actual version chruby ruby-3.1.2 chruby ruby-3.1.2 chruby ruby-3.1.2 chruby ruby-3.1.2 source /usr/local/opt/chruby/share/chruby/chruby.sh source /usr/local/opt/chruby/share/chruby/auto.sh chruby ruby-3.1.2 chruby ruby-3.1.2
What would be the exact command would I need to use to uninstall all the versions if I followed Jekyll’s installation process for macOS?