Don't Use the Mac System Ruby
freecodecamp.org
freecodecamp.org
- the default location for gems is the system Ruby directory /Library/Ruby/Gems/2.6.0 so you will need to be superuser to install gems (and you really shouldn’t alter this folder)
- you could use sudo to install gems but that’s a security risk (gem installation can run malicious code)
- using Bundler is a best practice to manage gem versions and dependencies
- it’s best to start projects with the newest version of Ruby and the system Ruby is 2.6.3
- the pre-installed Ruby is deprecated by Apple and may disappear in future macOS releases
Did I miss anything?