Use sudo for gem install cocoapods

前端 未结 4 817
鱼传尺愫
鱼传尺愫 2020-12-31 07:11

When I run

$ gem install cocoapods

I get

Fetching: i18n-0.7.0.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissi         


        
4条回答
  •  -上瘾入骨i
    2020-12-31 07:36

    This is the solution when you are receiving the "Operation not permitted" error.

    $ mkdir -p $HOME/Software/ruby
    $ export GEM_HOME=$HOME/Software/ruby
    $ gem install cocoapods
    [...]
    

提交回复
热议问题