title: npm install fail (wrong path)
body: <p>I have a weird problem re-installing node modules in a project of mine.
  I am running windows 7 64bit.</p>
  
  <p>I have correctly installed node.js globally.
  When typing <code>node -v</code> in CMD: <code>v8.9.4</code> But when I am trying to use <code>npm i</code> (or <code>npm -v</code>) in a project of mine I get:</p>
  
  <blockquote>
    <p>Error: Cannot find module 'C:\Program
    Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'</p>
  </blockquote>
  
  <p>As you can see path is wrong. It should be <code>C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js</code></p>
  
  <p>In My path variables I have:</p>
  
  <p>User variables:</p>
  
  <pre><code>NODE_PATH
  C:\Users\myusername\AppData\Roaming\npm\node_modules
  PATH
  C:\Users\myusername\AppData\Roaming\npm
  System Variables ( at the end of others):
  C:\Program Files\nodejs
  </code></pre>
  
  <p>What can be wrong?</p>