CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
This problem happened because the angular version I am using is 1.5.
changing the executable from npm to npm.cmd solved the problem!
<execution>
<id>exec-npm-update</id>
<phase>generate-sources</phase>
<configuration>
<workingDirectory>${uiResourcesDir}</workingDirectory>
<executable>npm.cmd</executable>
<arguments>
<argument>update</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
I faced the same issue, as answered you need to provide npm.cmd instead just npm
If you like to run the shell or command prompt commands irrespective of environment. I am talking about npm.cmd (windows), npm.sh (linux) parts.
Downgrade the maven-exec-plugin to Version 1.4.0 so that you can just mention (For e.g.)
<executable>npm</executable>
<executable>ng</executable>