Skip to content

Fails to npm install the frontend in Windows with CreateProcess error #3

@harishb93

Description

@harishb93

Issue

Tried running "mvn clean install" on the cloned project in my windows machine. Node and npm were installed. Execution with goal "npm" and argument "install" fails to execute with the below error.

Error Logs:

[INFO] Installed npm locally.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:npm (npm install) @ spring-and-react ---
[INFO] Running 'npm install' in C:\Users\username\Desktop\react-and-spring-master\frontend
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.853 s
[INFO] Finished at: 2019-01-18T00:54:04+05:30
[INFO] Final Memory: 23M/389M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm install) on project spring-and-react: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "C:\Users\username\Desktop\react-and-spring-master\target\node\node.exe" (in directory "C:\Users\username\Desktop\react-and-spring-master\frontend"): CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]

Possible Reasons:

  1. The frontend-maven-plugin is using CreateProcess instead of ShellExecute
  2. The frontend-maven-plugin is installing 64bit npm and node but execution command is for 32bit application

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions