title: -bash: /usr/local/bin/npm: No such file or directory
body: <p>I was installing a boilerplate in my Mac, then it says <code>your node version is outdated</code> and <code>we can't find gulp, try npm install gulp</code>, </p>
  
  <p>I put in my console</p>
  
  <p><code>npm install -g npm; npm install gulp</code></p>
  
  <p>and after that, it doesn't matter what I do with <code>npm . . .</code> in the terminal, I always get this <code>-bash: /usr/local/bin/npm: No such file or directory</code></p>
  
  <p>here my last logs</p>
  
  <pre><code>CRSJOPGP0223:nodeboilerplate bermarce$ npm start
  -bash: /usr/local/bin/npm: No such file or directory
  CRSJOPGP0223:nodeboilerplate bermarce$ npm cache clean
  -bash: /usr/local/bin/npm: No such file or directory
  CRSJOPGP0223:nodeboilerplate bermarce$ sudo npm install npm -g
  Password:
  sudo: npm: command not found
  CRSJOPGP0223:nodeboilerplate bermarce$ npm -v
  -bash: /usr/local/bin/npm: No such file or directory
  CRSJOPGP0223:nodeboilerplate bermarce$ node -v
  v4.1.0
  CRSJOPGP0223:nodeboilerplate bermarce$ 
  </code></pre>
  
  <p>I have that version of node, <code>v4.1.0</code>, but anything with npm works.</p>
  
  <p>Do you guys have an idea ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <blockquote>
    <p>-bash: nvm: command not found</p>
  </blockquote>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I just uninstall everything regarding <code>node</code> and <code>nvm</code> in my Mac, then install node and nvm again and it works, I do <code>nvm</code> and <code>node</code> and <code>npm</code> and returns some instructions so this means it is installed.</p>
  
  <p>But if I open a new tab in the terminal and type the same, I got no responde</p>
  
  <p><code>-bash: nvm: command not found</code> &lt;--that again</p>
  
  <p>so then I installed again everything in the new tab of the terminal and it works again. Is like if its not installed globally or something.</p>