title: Can't update npm packages: ERR! code EEXIST
body: <p>I'm trying to to upgrade npm packages via </p>
  
  <pre><code>npm update -g
  </code></pre>
  
  <p>But, I get this error:</p>
  
  <pre><code>npm ERR! path C:\Program Files\nodejs\npm
  npm ERR! code EEXIST
  npm ERR! Refusing to delete C:\Program Files\nodejs\npm: is outside C:\Program Files\nodejs\node_modules\npm and not a link
  npm ERR! File exists: C:\Program Files\nodejs\npm
  npm ERR! Move it away, and try again.
  </code></pre>
  
  <p>I've googled but none of the solutions work. One sadi to remove the npm.cmd and npm files from here:</p>
  
  <pre><code>C:\Program Files\nodejs\
  </code></pre>
  
  <p>I tried that, but it fails as npm is now missing.</p>
  
  <p>That folder, C:\Program Files\nodejs\, is actually a shortcut pointing to </p>
  
  <pre><code>C:\Users\lthurman\AppData\Roaming\nvm\v8.11.1
  </code></pre>
  
  <p>I'm using nvm to manage my node installations, any ideas on how to fix this?</p>
  
  <p>Thanks</p>