CreateProcess错误= 193,%1不是有效的Win32应用程序-> [帮助1] [英] CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]

查看:1961
本文介绍了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>

推荐答案

发生此问题是因为我使用的角度版本为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应用程序-&gt; [帮助1]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆