title: NodeJS can not go to the folder up to execute the command from child_process.spawn
body: <p>To start WebPack (which is in the parent folder) I use Gulp, but as soon as I try to go to the parent folder in the path, I get an error.</p>
  
  <p>Gulp</p>
  
  <pre><code>var spawn = require('child_process').spawn;
  
  gulp.task('_Scada2', function (done) {
    spawn('webpack', [], { cwd: '../../Scada.Web/' })
      .on('close', done);
  });
  </code></pre>
  
  <p>get an error</p>
  
  <pre><code>[14:20:47] '_Scada2' errored after 4.47 ms
  [14:20:47] Error: spawn webpack ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
      at onErrorNT (internal/child_process.js:406:16)
      at process._tickCallback (internal/process/next_tick.js:63:19)
  Процесс завершен с кодом 1.
  </code></pre>