How do I install ruby gems on Mac

后端 未结 5 1197
灰色年华
灰色年华 2021-01-30 01:38

How do I install RubyGems on my Mac?

I tried to run $ gem install rubygems-update with no luck . It returns

ERROR:  While executing gem ...          


        
5条回答
  •  你的背包
    2021-01-30 02:17

    It is showing that you don't have the permission to write something in that directory. Instead use this directory :

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

    It perfectly work for me.

    (I am using macOS Sierra, version 10.12.6)

提交回复
热议问题