“您没有针对/ usr / bin目录的写入权限。”当使用Gem命令安装Sass时 [英] "You don't have write permissions for the /usr/bin directory." when installing Sass using the Gem command

查看:5558
本文介绍了“您没有针对/ usr / bin目录的写入权限。”当使用Gem命令安装Sass时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上,我试图在终端中使用命令sudo gem install sass安装Sass。然后我输入我的密码,一切正常,直到弹出,



错误:执行gem时(Gem :: FilePermissionError)
您对于/ usr / bin目录没有写权限。



我使用sudo,但它仍然不起作用,它是其中一种你不能给自己读&写入权限。任何想法?



谢谢,

Wade

解决方案 > / usr / bin 受系统完整性保护保护,不能被
任何人甚至root写入。您需要运行:

  sudo gem install -n / usr / local / bin sass 

安装到可写目录中


I'm on Mac and I'm trying to install Sass using the command in terminal, "sudo gem install sass". I then enter my password, and everything works fine until this pops up,

"ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory."

I do use sudo, but it still doesn't work, and it's one of those things that you can't give yourself read & write permissions to. Any ideas?

Thanks,

Wade

解决方案

/usr/bin is protected by system integrity protection and is not writeable by anybody even root. You need to run:

sudo gem install -n /usr/local/bin sass

to install into a writeable directory

这篇关于“您没有针对/ usr / bin目录的写入权限。”当使用Gem命令安装Sass时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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