CreateProcess error=193, %1 is not a valid Win32 application
See original GitHub issueGetting 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:
- Created 7 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Hello,
I had the same problem, this solved the issue:
it will delete corrupted node.exe binary and force redownload, which helped.
Karel