[英]How to install Cocoapods
I am trying to install Cocoapods, but I receive the following error:我正在尝试安装 Cocoapods,但收到以下错误:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
I have tried many suggestions to solve this, but nothing helped.我尝试了很多建议来解决这个问题,但没有任何帮助。
Can anyone help me?谁能帮我?
Try To use尝试使用
sudo gem install cocoapods -n /usr/local/bin
sudo gem install cocoapods -n /usr/local/bin
or Check this link https://medium.com/@javedmultani16/getting-error-while-installing-cocoapods-you-dont-have-write-permissions-for-the-usr-bin-9208a4d2141d或检查此链接https://medium.com/@javedmultani16/getting-error-while-installing-cocoapods-you-dont-have-write-permissions-for-the-usr-bin-9208a4d2141d
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.