Known issues
You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
It is recommended to install a separate Ruby instance, beside the one that is delivered and mainly used by macOS to prevent unexpected side effects.
To do so, follow the listed instructions.
- Install Homebrew.
- Install rbenv (a version manager for Ruby).
- Make sure you updated your .zshrc or .bash_profile content according to the
rbenv init
description.- You may need to add
export PATH=”$HOME/.rbenv/bin:$PATH”
to the start of your .zshrc or .bash_profile as well.
- You may need to add
- Install a stable or required Ruby version.
- Run `rbenv global 2.7.0`
- Run `rbenv rehash`
- Now you should be able to install new Gems.