且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

CreateProcess 错误=193,%1 不是有效的 Win32 应用程序 ->[帮助1]

更新时间:2022-05-12 01:14:15

出现这个问题是因为我用的angular版本是1.5.

This problem happened because the angular version I am using is 1.5.

将可执行文件从 npm 更改为 npm.cmd 解决了问题!

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>