If you've updated Ruby on your Mac to version 2.7.7 but ruby -v
still shows version 2.6.10, it's possible that you have multiple versions of Ruby installed on your system, and the system is still using the older version. You can follow these steps to ensure you're using the correct Ruby version:
-
Check your Ruby versions: First, make sure that Ruby 2.7.7 is installed on your system. You can check this by running the following command:
ruby -v
If it shows the wrong version (2.6.10), it means that the system is using the older Ruby version.