Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix gem install error - MacOS Bug Sur

If you get this error message:

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.

Fix

sudo gem install [gem-name] -n /usr/local/bin



Source: https://stackoverflow.com/a/50458569/12854787

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment