Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateProcess error=193, %1 is not a valid Win32 application #487

Open
sampath-karupakula opened this issue Oct 8, 2016 · 9 comments
Open

Comments

@sampath-karupakula
Copy link

sampath-karupakula commented Oct 8, 2016

Getting following error while doing build.
platform details:

WIndows-10(64 bit).
nodejs
angular2 cli.
maven 3

I am trying to do following activities:

`
com.github.eirslett
frontend-maven-plugin
1.0

app
app/temp




install node and npm

install-node-and-npm

generate-resources

v6.3.1
3.9.5

                <!-- install CLI if not exist -->
                <execution>
                    <id>npm install -g angular cli</id>
                    <goals>
                        <goal>npm</goal>
                    </goals>
                    <phase>generate-resources</phase>
                    <configuration>
                        <arguments>install -g angular-cli</arguments>
                    </configuration>
                </execution>

                <!-- It will execute command "npm install" inside "/angular" directory -->
                <execution>
                    <id>npm install</id>
                    <goals>
                        <goal>npm</goal>
                    </goals>
                    <phase>generate-resources</phase>
                    <configuration>
                        <arguments>install</arguments>
                    </configuration>
                </execution>
`
@eirslett
Copy link
Owner

eirslett commented Oct 9, 2016

Maybe the node.exe it downloaded is corrupt?

@rmigacz
Copy link

rmigacz commented Nov 23, 2016

I have the same problem - I have changed in project's pom nodeVersion to the v6.9.1 and npmVersion to the 4.0.3.

@aciccarello
Copy link

I hit this same error when updating from v6.9.1 to v6.9.5. I even tried removing the node directory in my project and reinstalling. My workaround was to copy the node.exe from my program files folder to my project.

@mbindu29
Copy link

please use npm.com instead npm in execution unit of plugin.

@nickjagger
Copy link

Hi, I had exactly the same issue on my Windows 10 machine this morning. The problem was the result of a corrupt node.exe in my Maven repository. I had to delete the node folder from BOTH my project and my .m2 repo:

delete this folder from your maven repository -> \.m2\repository\com\github\eirslett
delete this folder from your application -> <MY_PROJECT>\frontend\src\main\frontend\node
then: mvn clean package

I initially tried deleting only the node folder from my application, but maven replaces it with the contents of the corrupt node.exe in the local repo. By deleting both folders, the plugin was forced to go and download a fresh copy of the node.exe to my local repo. Subsequently everything worked fine.

Hope this helps.

@lotcz
Copy link

lotcz commented Mar 31, 2019

Hello,

I had the same problem, this solved the issue:

mvn dependency:purge-local-repository -DmanualInclude=com.github.eirslett:node
mvn clean package

it will delete corrupted node.exe binary and force redownload, which helped.

Karel

@ikangurame3
Copy link

change version on dependency file , same like ur node version installed

@saurabh-sp-tripathi
Copy link

I have the same issue but in jenkins. It is not a consistent one, it appears and disappears time to time. @ikangurame3 did changing version help?

@TIBCOrkrajews
Copy link

TIBCOrkrajews commented Apr 18, 2023

This just happened to us to today in the latest plugin version.

How exactly can a corrupt download from nodejs.org happen in the first place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants