title: Node and npm not found after restarting macOS
body: <p>I am using my corporate's laptop and am a new mac User (used Ubuntu before) :</p>
  <ul>
  <li>OS: macOS Monterey Version 12.2</li>
  </ul>
  <p>There are two accounts, administrator and mine - I don't have sudo rights. To install homebrew without administrator rights, I followed <a href="https://docs.brew.sh/Installation#untar-anywhere" rel="nofollow noreferrer">this Installation</a>.</p>
  <p>To install the node - I used <code>brew install node</code>. Both <code>node -v</code> and <code>npm -v</code> were working. When I restarted the laptop, I cannot find node/npm.</p>
  <p>On running <code>$ node -v</code>, I get <code>-bash: node: command not found</code> (I changed my default terminal from zsh to bash and the output is the same for both of them)</p>
  <p>I tried <a href="https://stackoverflow.com/a/30950343/10217754">this solution</a> but couldn't find nvm in the system. Am new to mac and I believe nvm is some kind of package manager like homebrew so this solution is not applicable to me (correct me if I am wrong).</p>
  <p>How can I install things in my system without sudo rights and keep them permanently(like node)?</p>
  <p>EDIT:</p>
  <ul>
  <li><p>(After adding brew to the PATH) On running - <code>brew list|grep node</code>, I got - <code>node</code></p>
  </li>
  <li><p><code>$ echo $PATH</code> gives <code>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/parthkapadia/homebrew/bin</code></p>
  </li>
  </ul>
  <p>EDIT2:</p>
  <ul>
  <li>Adding brew to path solved the issue, now I can even access node and npm (even after restarting). I used <a href="https://wpbeaches.com/how-to-add-to-the-shell-path-in-macos-using-terminal/" rel="nofollow noreferrer">this</a> site to add homebrew/bin to path  (in zsh terminal)</li>
  </ul>