code: function runNpmTask(taskName, directory) {
  
      console.log(`running ${taskName} in ${directory}`);
  
      var opts = {
          cwd: directory,
          env: process.env,
          stdio: 'inherit',
          shell: true
      };
  
      args = taskName.split(' ');
  
      var proc = cp.spawnSync('npm', args, opts);
  
      if (proc.error) {
          process.stderr.write(proc.error.toString());
      }
  
      return proc.status;
  }
docs: /*
  Synchronously run an npm task in a single directory.  Return error code of spawned process.