title: Error installing cocoapods "sudo gem install cocoapods" MacOs Catalina
body: <p>I am trying to install <code>cocoapods</code> in my mac system but Unfortunately not able to install due to below error. </p>
  
  <p>I have already used below commands. </p>
  
  <ul>
  <li><p><code>sudo gem install -n /usr/local/bin cocoapods --pre</code></p></li>
  <li><p><code>export GEM_HOME=~/.gems
  export PATH=$GEM_HOME/bin:$PATH
  gem install cocoapods</code></p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/1QJIS.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1QJIS.png" alt="enter image description here"></a></p>