当前位置 : 主页 > 手机开发 > harmonyos >

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

来源:互联网 收集:自由互联 发布时间:2023-08-26
在cocoapods 执行 sudo gem install cocoapods 的时候出现 While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory. 改为 sudo gem install -n /usr/local/bin cocoapods 即可 如果是

在cocoapods 执行

 sudo gem install cocoapods

的时候出现  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

改为 sudo gem install -n /usr/local/bin cocoapods  即可

 

如果是卸载的话,把上面这句改成:

sudo gem uninstall -n /usr/local/bin cocoapods  即可



作者:稻草人11223

上一篇:ios开发之--VC的生命周期
下一篇:没有了
网友评论