title: npm cannot find npm-cli module after yosemite upgrade
body: <p>When trying to run <code>npm</code> after I updated OS X to yosemite I receive this error:</p>
  <pre><code>module.js:340
      throw err;
            ^
  Error: Cannot find module '/usr/local/lib/node_modules/npm/bin/node_modules/npm/bin/npm-cli.js'
      at Function.Module._resolveFilename (module.js:338:15)
      at Function.Module._load (module.js:280:25)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:929:3
  </code></pre>
  <p>My guess is it has something to do with PATHs but I am not well learned in this area. Please ask if you need anymore info.  Thanks.</p>
  <h2>Edit</h2>
  <p>So the path it is looking for the <code>npm_cli</code> module is pretty wacky <code>/usr/local/lib/node_modules/npm/bin/node_modules/npm/bin</code></p>
  <p>The path that <code>npm_cli.js</code> is located at is:</p>
  <p><code>/usr/local/lib/node_modules/npm/bin</code></p>
  <p>So there's the issue but I still don't actually know how to fix it.</p>
  <h2>Edit 2</h2>
  <p>Here are the relevant entries in my <code>.bash_profile</code></p>
  <pre><code>export PATH=&quot;/usr/local/lib/node_modules/npm/bin:/usr/local/heroku/bin:$PATH&quot;
  export NODE_PATH=&quot;/usr/local/lib/node&quot;
  </code></pre>