0

$ gem install rake ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory. Stephens-MBP-2:lib stephengiardina$

1 Answers1

-2

it means you have no access rights on that directory. might be owned by root.
try running the following command:

sudo chmod a+rwx  /Library/Ruby/Gems/2.6.0
Fernand
  • 1,293
  • 1
  • 10
  • 18