gem install cocoapods ERROR: While executing gem ... (Gem::FilePermissionError)

 

在cocoapods 执行

 sudo gem install cocoapods

的时候出现  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

改为 sudo gem install -n /usr/local/bin cocoapods  即可

 
 
 
 
posted @ 2019-02-25 10:38  红凉梦  阅读(1764)  评论(0编辑  收藏  举报