“您没有针对/ usr / bin目录的写入权限。”当使用Gem命令安装Sass时 [英] "You don't have write permissions for the /usr/bin directory." when installing Sass using the Gem command
问题描述
我在Mac上,我试图在终端中使用命令sudo gem install sass安装Sass。然后我输入我的密码,一切正常,直到弹出,
错误:执行gem时(Gem :: FilePermissionError)
您对于/ usr / bin目录没有写权限。
我使用sudo,但它仍然不起作用,它是其中一种你不能给自己读&写入权限。任何想法?
谢谢,
Wade
任何人甚至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屋!