Tag Archives: CocoaPods

Cocopods: You don’t have write permissions for the /usr/bin directory.

When I was install cocoapods

command: sudo gem install cocopods

warning:

tiantaodeMacBook-Pro:~ tiantao$ sudo gem install cocoapods

ERROR: While executing gem … (Gem::FilePermissionError)

You don’t have write permissions for the /usr/bin directory.

How to Solve?

sudo gem install cocoapods -n /usr/local/bin