title: ~/zshrc: Permission denied
body: <p>I've installed the expo CLI and am trying to use expo init to start a project. When I do, this is returned:</p>
  
  <pre><code>bash: expo: command not found
  </code></pre>
  
  <p>I saw that this required updating the <code>.bash_profile</code> with <code>export PATH=$PATH:~/node_modules</code>.</p>
  
  <p>However, apparently Mac OS Catalina switched from <code>.bash_profile</code> to zprofile or zshrc. Advice online said one should instead add <code>PATH=$PATH:~/node_modules</code> to the end of zshrc. </p>
  
  <p>I tried doing this, but it says the file is locked. When I try to edit it, this pops up:</p>
  
  <p>You don’t own the file “zshrc” and don’t have permission to write to it.</p>
  
  <p>Any ideas how to move forward to fix this?</p>
  
  <p>P.S. I installed anaconda a while ago and saw that the <code>.bash_profile</code> had this:</p>
  
  <pre class="lang-sh prettyprint-override"><code># added by Anaconda3 5.0.1 installer
  export PATH="~/anaconda3/bin:$PATH"
  
  # Setting PATH for Python 3.6
  
  # The original version is saved in .bash_profile.pysave
  PATH="~/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
  export PATH
  </code></pre>
  
  <p>This might be a problem? I updated the file with the new path, but expo still was not recognized. That's when I found out Catalina switched to zprofile &amp; zshrc.</p>
  
  <p>I've been stuck on this for a long time and tried a bunch of things -- any advice would be greatly appreciated!</p>