gem installation permission error
- Error message:
You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
- solve:
At this time, you only need to add sudo before the command, for example: sudo gem update --system, sudo is to obtain administrator privileges, and enter the command to continue execution.