CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
<p>When running exec-npm-update in maven , I am getting the following error 
CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]</p>

<p>Below is the snippet from pom file.</p>

<pre><code>&lt;execution&gt;
                &lt;id&gt;exec-npm-update&lt;/id&gt;
                &lt;phase&gt;generate-sources&lt;/phase&gt;
                &lt;configuration&gt;
                  &lt;workingDirectory&gt;${uiResourcesDir}&lt;/workingDirectory&gt;
                  &lt;executable&gt;npm&lt;/executable&gt;
                  &lt;arguments&gt;
                    &lt;argument&gt;update&lt;/argument&gt;
                  &lt;/arguments&gt;
                &lt;/configuration&gt;
                &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
                &lt;/goals&gt;
              &lt;/execution&gt;
</code></pre>