title: Run npm, ng commands using Ant script on Windows, "The system cannot find the file specified" error
body: <p>When I try to run the following Ant script, which executes the <strong>"npm"</strong> command:</p>
  
  <pre><code>&lt;target name ="test"&gt;
      &lt;exec executable="npm" failonerror="true"&gt;
          &lt;arg value="install" /&gt;
      &lt;/exec&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>It fails with this error:</p>
  
  <pre><code>Execute failed: java.io.IOException: Cannot run program "npm" 
  (in directory "C:\Development\workspace\traqpath\WebSource"): 
  CreateProcess error=2, The system cannot find the file specified
  </code></pre>
  
  <p>The same happens when I try to run the Angular-CLI <strong>"ng"</strong> command:</p>
  
  <pre><code>&lt;target name ="test"&gt;
          &lt;exec executable="ng" failonerror="true"&gt;
              &lt;arg value="build"/&gt;
              &lt;arg value="--prod"/&gt;
              &lt;arg value="--bh"/&gt;
          &lt;/exec&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>With the same error message, but for "ng":</p>
  
  <pre><code>Execute failed: java.io.IOException: Cannot run program "ng" 
  (in directory "C:\Development\workspace\traqpath\WebSource"): 
  CreateProcess error=2, The system cannot find the file specified
  </code></pre>
  
  <p>Both commands run without problems in the Windows Command Line, which means NodeJS installation is right, and NodeJS path is properly configured in the PATH system variable.</p>