本文主要是介绍Mac升级到 OSX 10.11 El Capitan 后 Operation not permitted - /usr/bin/sass,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
http://stackoverflow.com/questions/32891965/error-while-executing-gem-errnoeperm-operation-not-permitted
$ sudo gem install cocoapods
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sass
yulongdeMacBook-Air:~ yulong$
改为
sudo gem install -n /usr/local/bin cocoapods
安装在这个路径下
/Users/yulong/.cocoapods/repos/master
如果出现pod search 库名找不到,但是库又是有的
解决的方式: 先移除掉/Users/yulong/.cocoapods/repos/master
再重新安装CocoaPods , 安装命令
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
sudo gem install -n /usr/local/bin cocoapods
这篇关于Mac升级到 OSX 10.11 El Capitan 后 Operation not permitted - /usr/bin/sass的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!