title: NodeJS: Run dot slash command line Windows
body: <p>I'm trying to get the following code which should execute shell command to wor in OSX and Windows.</p>
  
  <pre><code>const exec = require("child_process").exec;
  const runCommand = (cmd) =&gt; exec(cmd,
      function (error, stdout, stderr) {
          if (stdout.length &gt; 0) {
              console.log(stdout);
          }
      });
  </code></pre>
  
  <p>For the following <code>runCommand("./node_modules/.bin/someBinary")</code> it does not work in Windows. But it works fine in OSX. So I wonder what modifications do I need for it to run in Windows as well?</p>