title: Can't run node or npm, getting the message "zsh: killed" or "Killed: 9" when running on bash
body: <p>Not sure if related, but over the weekend I upgraded my OS to Big Sur version 11.1 and then when I began working one thing went wrong after another and now I can't use node or npm at all. I get the following message in zsh:</p>
  <blockquote>
  <p>% node -v</p>
  <p>zsh: killed     node -v</p>
  </blockquote>
  <p>And the following on bash</p>
  <blockquote>
  <p>node -v</p>
  <p>Killed: 9</p>
  </blockquote>
  <p>I've tried to install different versions of node through <code>n</code>, which makes no difference.</p>
  <h2>How it got this way?</h2>
  <p>Prior to this issue (after my OS upgrade), I couldn't run <code>npm install</code>, and would get the following message:</p>
  <blockquote>
  <p>Maximum call stack size exceeded</p>
  </blockquote>
  <p>This seems to have been reported <a href="https://stackoverflow.com/questions/65286917/cant-install-npm-packages-anymore-due-to-macos-big-sur-upgrade">on this thread, but as of writing this there are no replies</a>.</p>
  <p>As the OP on that thread says, I tried installing npm v7, which initially did solve my problem with the <code>npm install</code>, however caused other issues on the project.</p>
  <p>I then decided to use <code>n</code> to install the latest version of <code>node</code> and this caused the errors I have above.</p>
  <p>Does anyone know what's going on and how to fix it?</p>
  <p>Edit: I was forced to uninstall and reinstall node to be able to go back to work, which did solve it but I am leaving this thread up in case there is a better solution.</p>