Skip to content

Instantly share code, notes, and snippets.

@namzo
Last active November 21, 2020 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namzo/6d267c0bc46950a6f4997e81a229fa89 to your computer and use it in GitHub Desktop.
Save namzo/6d267c0bc46950a6f4997e81a229fa89 to your computer and use it in GitHub Desktop.
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