美文网首页
mac OS gem 相关问题处理

mac OS gem 相关问题处理

作者: 巴糖 | 来源:发表于2018-10-30 16:21 被阅读20次

    Q:

    ERROR: While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

    update

    sudo gem update
    // 或者mac OS 10.11之后
    sudo gem update -n /usr/local/bin
    

    update --system

    sudo gem update --system
    // 或者mac OS 10.11之后
    sudo gem update -n /usr/local/bin —system
    

    sass

    sudo gem install sass
    // 或者mac OS 10.11之后
    sudo gem install -n /usr/local/bin sass
    

    generamba

    sudo gem install generamba
    // 或者mac OS 10.11之后
    sudo gem install -n /usr/local/bin generamba
    

    rubygems-update

    sudo gem install rubygems-update
    // 或者mac OS 10.11之后
    sudo gem install -n /usr/local/bin rubygems-update
    

    passenger

    gem install passenger
    // 或者mac OS 10.11之后
    sudo gem install -n /usr/local/bin passenger
    

    相关文章

      网友评论

          本文标题:mac OS gem 相关问题处理

          本文链接:https://www.haomeiwen.com/subject/slwgtqtx.html