1.在升级ruby时报如下错误
ERROR:While executing gem ...(Errno::EPERM)
Operation not permitted -
/usr/bin/update_rubygems
解决办法: sudo gemupdate -n /usr/local/bin –system
2.安装brew的命令执行方式
/usr/bin/ruby -e "$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"
3.更新cocopods时报错
ERROR:While executing gem ...(Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
解决办法:sudo gem install -n /usr/local/bin cocoapods --pre
网友评论