question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Getting following error while doing build. platform details:

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

I am trying to do following activities:

`<plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>1.0</version> <configuration> <workingDirectory>app</workingDirectory> <installDirectory>app/temp</installDirectory> </configuration> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <phase>generate-resources</phase> <configuration> <nodeVersion>v6.3.1</nodeVersion> <npmVersion>3.9.5</npmVersion> </configuration> </execution>

                <!-- 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>
</executions> </plugin>`

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

25reactions
nickjaggercommented, Apr 27, 2018

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.

9reactions
lotczcommented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does CreateProcess give error 193 (%1 is not a valid ...
There is a problem loading one of the dependencies of the executable, i.e. the DLLs that are linked to the executable. The most...
Read more >
Error 193: %1 is not a valid Win32 application. - IBM
This issue can occur if a file or folder with name 'Program' exists on the same drive where the Cognos products are installed.To...
Read more >
CreateProcess error 193: %1 is not a valid win32 application
Data collection failed right away with error ::CreateProcess error 193: %1 is not a valid win32 application. Solution:
Read more >
CreateProcess error=193, %1 is not a valid Win32 application
I solved it with replacing android folder, package.json and package-lock.json files with working ones. Problem is probably about @react-native- ...
Read more >
createProcess error=193, %1 is not a valid win 32 application
That's because a JAR is not an executable file like .exe files are. JAR files are executed using the javaw.exe tool. So you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found