title: Kill a running node process in windows
body: <p>Am trying to stop a node script from a running node server in windows</p>
  
  <p>an running the script as <code>node appium -p 3000</code></p>
  
  <p>and it will be in running state until it stop
  i need to stop this script running in particular situation
  in windows how to kill this node script <code>node appium -p 3000</code>
  i dont need to kill it by using <code>PID</code>.is tjere any possible ways to kill the running process</p>
  
  <p>code</p>
  
  <pre><code>    var start = spawn('node appium -p 3000', args);
  start.stdout.on('data', function(data) {
      console.log(data)
  });
  start.stderr.on('data', function(data) {
      console.log('ps stderr: ' + data);
  });
  start.on('close', function(code) {
      console.log('process exit code ' + code);
  });
  
  
  function killall(){
  
  start.kill()//is it possible??/
  process.exit() //is it also possible??
  
  }
  </code></pre>