title: How to install MongoDb in MacOS Catalina version 10.15?
body: <p>I am trying to install MongoDb in my Macbook,<br>
  My OS version is <strong>MacOS Catalina version 10.15.4</strong></p>
  
  <p><strong>I tried the following commands -</strong><br>
  1. brew update<br>
  2. brew install mongodb-community<br></p>
  
  <p>But I am getting the following error -<br></p>
  
  <pre><code>Error: The following directories are not writable by your user:
  /usr/local/share/man/man5
  /usr/local/share/man/man7
  
  You should change the ownership of these directories to your user.
    sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7
  
  And make sure that your user has write permission.
    chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7
  </code></pre>
  
  <p><strong>Also tried -</strong><br>
  <a href="https://i.stack.imgur.com/tBdaG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tBdaG.png" alt="enter image description here"></a></p>
  
  <p><strong>Do I need to run these commands thrown in the error? -</strong><br></p>
  
  <pre><code>sudo chown -R $(whoami) /usr/local/share/man/man5 /usr/local/share/man/man7
  
  chmod u+w /usr/local/share/man/man5 /usr/local/share/man/man7
  </code></pre>