title: How can I change the cache path for npm (or completely disable the cache) on Windows?
body: <p>I've installed Node.js on my Windows 7 x64 development machine, the manual way:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>mkdir C:\Devel\nodejs
  cd C:\Devel\nodejs
  set NODE_PATH=%CD%
  setx /M PATH "%PATH%;%NODE_PATH%"
  setx /M NODE_PATH "%NODE_PATH%\node_modules"
  </code></pre>
  
  <p>I've placed the main <a href="http://nodejs.org/dist/latest/x64/" rel="noreferrer">node x64 binary</a> along with <a href="http://nodejs.org/dist/npm/" rel="noreferrer">npm package manager</a> in <code>C:\Devel\nodejs</code>. Works like a charm and I can update the main binary without dealing with the installer.</p>
  
  <p>The only problem I can't solve is moving the cache folder. When I install a local package:</p>
  
  <pre class="lang-none prettyprint-override"><code>npm install express
  </code></pre>
  
  <p>... cache is placed under <code>%APP_DATA%\npm-cache</code> folder. I'd like to change it to:</p>
  
  <p><code>C:\Devel\nodejs\npm-cache</code></p>
  
  <p>How can I change the npm cache folder, or disable it completely?</p>