CreateProcess 错误=193,%1 不是有效的 Win32 应用程序 ->[帮助1] [英] CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
本文介绍了CreateProcess 错误=193,%1 不是有效的 Win32 应用程序 ->[帮助1]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 maven 中运行 exec-npm-update 时,出现以下错误CreateProcess 错误=193,%1 不是有效的 Win32 应用程序 -> [帮助 1]
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]
以下是 pom 文件的片段.
Below is the snippet from pom file.
<execution>
<id>exec-npm-update</id>
<phase>generate-sources</phase>
<configuration>
<workingDirectory>${uiResourcesDir}</workingDirectory>
<executable>npm</executable>
<arguments>
<argument>update</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
推荐答案
出现这个问题是因为我用的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>
这篇关于CreateProcess 错误=193,%1 不是有效的 Win32 应用程序 ->[帮助1]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文