Why won't bower run when packaging a module?

OpenMRS V. 2.2

I trying to package an OpenMRS module, but I usually get failure in the omod section. This is the kind of error I get:

ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.4.0:exec (default) on project mymodule-omod: Command execution failed. Cannot run program "bower" (in directory "C:\Users\osagie\Documents\GitHub\mymodule\omod\src\main\webapp\resources\scripts"): CreateProcess error=267, The directory name is invalid -> [Help 1]

attached is what a section of my project structure looks like:

I have npm installed on my system already. Can anyone please, suggest how I can possibly go about this issue?

1 Like

Does it work if you run maven from command line?

It’s thesame even from the command line.