gem install cocoapods报错You don't have write permissions for the /usr/bin directory.

November 21, 2018 访问: 674 次

使用命令

sudo gem install cocoapods

安装 cocoapods时,报错:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

更换命令为:

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

即可。


添加新评论