title: env: node: No such file or directory in mac
body: <p>I'm searching it in google on how to show the version of node js or how I'm gonna work with npm? 
  If I do this</p>
  
  <pre><code>npm -v
  </code></pre>
  
  <p>even I already install it using <code>brew install node</code>. The result is always</p>
  
  <pre><code>env: node: No such file or directory
  </code></pre>
  
  <p>I already do a lot of command to solve for it, but failed.
  these are the command that I already try:</p>
  
  <pre><code>sudo apt-get install nodejs-legacy
  sudo ln -s /usr/local/bin/node /usr/bin/node
  brew unlink node
  brew link node
  </code></pre>
  
  <p>I can't start the task because of this. help me guys. This work before after I used this command <code>brew link --overwrite node</code>. Now I have problem, i cant work anymore with npm. I'm really new about this. I don't have any idea now on how to fix this. </p>
  
  <p><strong>Update</strong></p>
  
  <p>I already get the list using <code>npm list</code> command. I also get the idea here <a href="https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x">link</a> but when I <code>npm install</code> inside the project. I alwayst get this "result env: node: No such file or directory",even I command <code>npm -v</code> but If i command it outside my project. It work the npm -v</p>