How do I install ruby gems on Mac

后端 未结 5 1127
灰色年华
灰色年华 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:18

    After installing cocoapods as Tulon suggested the thing which worked for me was passing the --user-install flag to the gem install command e.g

    gem install rubygems-update --user-install

    from https://guides.cocoapods.org/using/getting-started.html#sudo-less-installation

提交回复
热议问题