title: Jenkins script quitting prematurely when using npm install on Windows
body: <p>In my Jenkins job I want to build a JavaScript app using Grunt. The Jenkins build scripts creates a build directory (if it doesn't already exist), changes to that directory and runs:</p>
  
  <pre><code>npm install grunt
  npm install grunt-zip
  grunt --gruntfile=[something]
  </code></pre>
  
  <p>(Of course <code>grunt-cli</code> is installed globally.) When I build the job, the first statement causes Grunt and dependencies to be pulled down as expected. However, the job then terminates successfully:</p>
  
  <pre><code>Archiving artifacts
  No emails were triggered.
  Finished: SUCCESS
  </code></pre>
  
  <p>The second <code>npm install</code> is not run. Any idea why the script is terminating after running <code>npm install</code> instead of continuing to the subsequent statements?</p>