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

后端 未结 3 1179
别那么骄傲
别那么骄傲 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

    0 讨论(0)
  • 2020-12-05 04:52

    I used the same for bundler.

    sudo gem install -n /usr/local/bin bundler.

    It works.

    0 讨论(0)
  • 2020-12-05 05:10

    For generamba:

    sudo gem install -n /usr/local/bin generamba
    
    0 讨论(0)
提交回复
热议问题