“You don't have write permissions for the /usr/bin directory.” when installing Sass using the Gem command

后端 未结 3 1194
别那么骄傲
别那么骄傲 2020-12-05 04:41

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

3条回答
  •  自闭症患者
    2020-12-05 04:44

    /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

提交回复
热议问题