Cocopods 遇到You don't have write permissions for the /usr/bin directory.

原创
2019/09/24 11:47
阅读数 6.6K

安装cocoapods时候

命令 sudo gem install cocopods

提示

tiantaodeMacBook-Pro:~ tiantao$ sudo gem install cocoapods

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

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

解决方案:

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

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部