发生此问题的原因是我使用的角度版本为1.5。
将可执行文件从npm更改为npm.cmd可以解决问题!
<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>

![CreateProcess错误= 193,%1不是有效的Win32应用程序-> [帮助1] CreateProcess错误= 193,%1不是有效的Win32应用程序-> [帮助1]](http://www.mshxw.com/aiimages/31/436347.png)
