title: NodeJs Error: spawn C:\Windows\system32\cmd.exe; ENOENT
body: <p>This is my script :</p>
  
  <pre><code>var exec = require('child_process').exec;
  
      exec('dir', function(error, stdout, stderr) {  // 'dir' is for example
        if (error) {
          console.error(`exec error: ${error}`);
          return;
        }
        console.log(`stdout: ${stdout}`);
        console.log(`stderr: ${stderr}`);
      });
  </code></pre>
  
  <p>And in the console I have :</p>
  
  <pre><code>exec error: Error: spawn C:\Windows\system32\cmd.exe; ENOENT
  </code></pre>
  
  <p>Someone can help me ?</p>