• home > OS > MacOS > Tutorials >

    mac 安装sass遇到的各种操蛋的情况

    Author:[email protected] Date:

    之前一直用windows,然后换mac后,各种,纠结,……尼玛,好好的ruby,安装,本来就操蛋,现在是操碎蛋……SF-Ro:~ SF$SF-Ro:~ SF$SF-Ro:

    之前一直用windows,然后换mac后,各种,纠结,……尼玛,好好的ruby,安装,本来就操蛋,现在是操碎蛋……

    SF-Ro:~ SF$ 

    SF-Ro:~ SF$ 

    SF-Ro:~ SF$ gem sources --remove https://rubygems.org/

    https://rubygems.org/ removed from sources

    SF-Ro:~ SF$ gem sources -a https://ruby.taobao.org/ 

    https://ruby.taobao.org/ added to sources

    SF-Ro:~ SF$ gem sources -l

    *** CURRENT SOURCES ***


    https://ruby.taobao.org/

    SF-Ro:~ SF$ gem install sass

    ERROR:  While executing gem ... (Gem::FilePermissionError)

        You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

    SF-Ro:~ SF$ sudo chmod 777  /Library/Ruby/Gems/2.0.0

    Password:

    SF-Ro:~ SF$ gem install sass

    ERROR:  While executing gem ... (Errno::EACCES)

        Permission denied - /Library/Ruby/Gems/2.0.0/gems/sass-3.4.22/.yardopts

    SF-Ro:~ SF$ sudo gem install sass

    ERROR:  While executing gem ... (Errno::EPERM)

        Operation not permitted - /usr/bin/sass

    SF-Ro:~ SF$ sudo chmod 755 usr/bin/sass

    chmod: usr/bin/sass: No such file or directory



    然后,请记住这一条%…………

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


    可以愉快地回家啪啪了……



    转载本站文章《mac 安装sass遇到的各种操蛋的情况》,
    请注明出处:https://www.zhoulujun.cn/html/OS/Mac/MacOSTutorials/7837.html