我尝试和gem安装cocoapods我收到一个错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
这是什么意思???
答案 0 :(得分:0)
您需要成为root用户才能写入/Library
,因此您需要使用sudo
,因为the instructions告诉您:
$ sudo gem install cocoapods