"You don't have write permissions for the /usr/bin directory." when installing Sass using the Gem command
Solution 1:
/usr/bin
is protected by system integrity protection and is not writeable by
anybody even root. You need to run:
sudo gem install -n /usr/local/bin sass
to install into a writeable directory
Solution 2:
For generamba:
sudo gem install -n /usr/local/bin generamba
Solution 3:
I used the same for bundler.
sudo gem install -n /usr/local/bin bundler.
It works.
Solution 4:
For CocoaPods:
sudo gem install -n /usr/local/bin cocoapods