macOS Sierra 10.12.1上的Cocoapods安装错误 [英] Cocoapods Installation Error on macOS Sierra 10.12.1

查看:200
本文介绍了macOS Sierra 10.12.1上的Cocoapods安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装cocoapods时出现此错误:

I'm getting this error when i'm trying to install cocoapods:

$ sudo gem install cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/fuzzy_match

我已安装 gem 版本 2.6.7 macOS 10.12.1 任何人都可以帮忙..或获得有关如何在 10.12.1

I have gem version 2.6.7 installed, macOS 10.12.1 can anyone help please..or have instructions how to install cocoapods on 10.12.1

推荐答案

我有一个类似的问题,使用第二种解决方案可以解决, 尝试在终端机的解决方案1或2中运行这些命令

I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal

我正在运行osx 10.12.1

I'm running osx 10.12.1

错误:执行gem时...(Errno :: EPERM) 不允许操作-/usr/bin/pod

ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod

解决方案1:

第1步:sudo nvram boot-args="rootless=0"

第2步:sudo reboot

第3步:sudo gem install cocoapods -V

解决方案2:

第1步:sudo gem install -n /usr/local/bin cocoapods

第2步:pod setup

这篇关于macOS Sierra 10.12.1上的Cocoapods安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆