终端权限问题

问题描述:想重装CocoaPods,在终端运行gem install cocoapods命令,出现如下错误:

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

问题分析:可能是没有权限

问题解决:sudo gem install cocoapods

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注