用命令:sudo gem install -n /usr/local/bin cocoapods
安裝cocoapods ?提示錯(cuò)誤:
ERROR:? While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
提示錯(cuò)誤路徑未被允許,然后我安裝了rbenv 苞冯,安裝完后再去執(zhí)行就OK了袖牙,為什么出現(xiàn)這種情況,找時(shí)間看看舅锄!
如何安裝rbenv 看這這篇文章http://www.reibang.com/p/519e41f91b1a