title: Why does command prompt script close when checking npm version?
body: <p>I have a file <strong>npm_version.cmd</strong> that does not pause and instead closes the window:</p>
  
  <pre><code>npm -v
  @pause
  </code></pre>
  
  <p>I have a similar file <strong>nodejs_version.cmd</strong> that does pause and keeps the window open:</p>
  
  <pre><code>node -v
  @pause
  </code></pre>
  
  <p>It seems npm is changing the window to npm and then back to cmd or something.</p>
  
  <p>Any idea how to force this to pause?</p>