最近因为手贱自己用终端来清除缓存,不小心弄坏了系统,虽然没啥重要资料,但是重装挺麻烦的,大家一定要做好备份....下面是我遇到的问题在安装Cocoapods的时候遇到这样的报错
然后我在网上找了下,发现这篇博文 pod安装失败,Operation not permitted - /usr/bin/pod
进去看了下,用第一种方法试了下
这样操作完后继续sudo gem install cocoapods,还是报错如第一张图,实在没办法了,有人遇到过这种情况么,求解
学习是最好的投资!
Correct answer: http://www.jianshu.com/p/5fc15906c53aThanks @nnianhou
Taobao mirror has been changed to https
➜ ~ sudo gem install -n /usr/local/bin/ cocoapods 试试这一句,亲测有效
I am the one who still gets the above error after executing it N times, and I still haven’t found a clue yet
Correct answer: http://www.jianshu.com/p/5fc15906c53a
Thanks @nnianhou
Taobao mirror has been changed to https
I am the one who still gets the above error after executing it N times, and I still haven’t found a clue yet