# Build Failure mvn openmrs-sdk:setup linux mint

**URL:** <https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325>\
**Category:** Ask OpenMRS\
**Created:** [April 16, 2026, 7:08pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325 "2026-04-16T19:08:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewp](https://talk.openmrs.org/letter_avatar/andrewp/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrewp](https://talk.openmrs.org/u/andrewp)\
**Post date:** [April 16, 2026, 7:08pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/1 "2026-04-16T19:08:18Z")

</div>

**Application Name:** OpenMrs mvn openmrs-sdk:setup **Version Number:** Reference Application 3.x and 3.7.0-SNAPSHOT

**Question:** Hi I am trying to run openmrs-sdk:setup I have confirmed java is installed. The docker image is running. I run into build failure here is the end of the log. Any help is appreciated;

Thanks

[INFO] [openmrs] Error: × Module not found: Can’t resolve ‘@react-aria/utils’ in ‘/tmp/openmrs-sdk-node4714340225290524215/npm-cache/\_npx/fc83492e9362cbff/node\_modules/@openmrs/esm-styleguide/dist/datepicker’ [INFO] ╭─[145:0] [INFO] 143 │ import { mergeProps, useDateSegment, useFocusRing, useHover, useObjectRef } from “react-aria”; [INFO] 144 │ import { DateFieldStateContext } from “react-aria-components”; [INFO] 145 │ import { filterDOMProps } from “@react-aria/utils”; [INFO] · ─────────────────────────────────────────────────── [INFO] 146 │ import { useRenderProps } from “./hooks.js”; [INFO] 147 │ /\*\* [INFO] ╰──── [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:07 min [INFO] Finished at: 2026-04-16T11:59:53-07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.8.0:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to install spa with node: Unable to execute mojo: Failed to run task: ‘npm --legacy-peer-deps --cache=/tmp/openmrs-sdk-node4714340225290524215/npm-cache exec – openmrs@9.0.3-pre.4342 build --target /home/andrew/openmrs/server1/frontend --build-config /home/andrew/openmrs/server1/spa-build-config.json’ failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) → [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] [MojoExecutionException - Apache Maven - Apache Software Foundation](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [April 16, 2026, 8:45pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/2 "2026-04-16T20:45:20Z")

</div>

> [@andrewp](#):
>
> **Application Name:** OpenMrs mvn openmrs-sdk:setup **Version Number:** Reference Application 3.x and 3.7.0-SNAPSHOT
> 
> **Question:** Hi I am trying to run openmrs-sdk:setup I have confirmed java is installed. The docker image is running. I run into build failure here is the end of the log. Any help is appreciated;
> 
> Thanks
> 
> [INFO] [openmrs] Error: × Module not found: Can’t resolve ‘@react-aria/utils’ in ‘/tmp/openmrs-sdk-node4714340225290524215/npm-cache/\_npx/fc83492e9362cbff/node\_modules/@openmrs/esm-styleguide/dist/datepicker’ [INFO] ╭─[145:0] [INFO] 143 │ import { mergeProps, useDateSegment, useFocusRing, useHover, useObjectRef } from “react-aria”; [INFO] 144 │ import { DateFieldStateContext } from “react-aria-components”; [INFO] 145 │ import { filterDOMProps } from “@react-aria/utils”; [INFO] · ─────────────────────────────────────────────────── [INFO] 146 │ import { useRenderProps } from “./hooks.js”; [INFO] 147 │ /\*\* [INFO] ╰──── [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:07 min [INFO] Finished at: 2026-04-16T11:59:53-07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.8.0:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to install spa with node: Unable to execute mojo: Failed to run task: ‘npm --legacy-peer-deps --cache=/tmp/openmrs-sdk-node4714340225290524215/npm-cache exec – openmrs@9.0.3-pre.4342 build --target /home/andrew/openmrs/server1/frontend --build-config /home/andrew/openmrs/server1/spa-build-config.json’ failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) → [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] [MojoExecutionException - Apache Maven - Apache Software Foundation](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException)

So sorry for this error. The error above is because npm didn’t install a required dependency for `@openmrs/esm-styleguide` during the SPA build. This is a common hiccup when working with a SNAPSHOT version. Builds are essentially “work in progress,” dependencies can sometimes become misaligned in the automated build pipeline. Kindly do you mind switching to a stable release 3.6.0?

---

<div class="post-metadata">

**Author:** ![andrewp](https://talk.openmrs.org/letter_avatar/andrewp/32/5_5575768a8748004e209b776fc1b2916d.png) [@andrewp](https://talk.openmrs.org/u/andrewp)\
**Post date:** [April 17, 2026, 12:06am UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/3 "2026-04-17T00:06:18Z")

</div>

I tried 3.6 and 3.4 no luck same errors.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [April 17, 2026, 8:25am UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/4 "2026-04-17T08:25:59Z")

</div>

Kindly share the error you are getting when running a stable version please!

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [April 17, 2026, 9:58am UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/5 "2026-04-17T09:58:59Z")

</div>

@andrewp Looking at the error log again, I see the build is using a specific temporary directory: `/tmp/openmrs-sdk-node...`. Often, a corrupted or incomplete download in this cache causes the “Module not found” error.

Kindly you can manually clear your npm cache and the temporary OpenMRS SDK artifacts. By running this commands :

```auto
npm cache clean --force  
rm -rf /tmp/openmrs-sdk-node*

```

Then run the `mvn openmrs-sdk:setup` command again.

---

<div class="post-metadata">

**Author:** ![andy\_ife](https://talk.openmrs.org/letter_avatar/andy_ife/32/5_5575768a8748004e209b776fc1b2916d.png) [@andy\_ife](https://talk.openmrs.org/u/andy_ife)\
**Post date:** [April 23, 2026, 4:50pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/6 "2026-04-23T16:50:40Z")

</div>

After running these:

```auto
npm cache clean --force
rm -rf /tmp/openmrs-sdk-node*

```

You could try installing the react-aria/utils package manually like this:

```auto
npm install @react-aria/utils

```

It worked for me

---

<div class="post-metadata">

**Author:** ![cjhetzle](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cjhetzle/32/21313_2.png) [@cjhetzle](https://talk.openmrs.org/u/cjhetzle)\
**Post date:** [May 3, 2026, 3:05pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/7 "2026-05-03T15:05:22Z")

</div>

I’m getting the same error as OP when setting up 3.0 with 3.7.0. But this suggested fix isn’t helping my system. :\

---

<div class="post-metadata">

**Author:** ![andy\_ife](https://talk.openmrs.org/letter_avatar/andy_ife/32/5_5575768a8748004e209b776fc1b2916d.png) [@andy\_ife](https://talk.openmrs.org/u/andy_ife)\
**Post date:** [May 4, 2026, 10:45am UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/8 "2026-05-04T10:45:26Z")

</div>

See this line from OP’s logs:

> [INFO] [openmrs] Error: × Module not found: Can’t resolve ‘@react-aria/utils’ in ‘/tmp/openmrs-sdk-node4714340225290524215/npm-cache/\_npx/fc83492e9362cbff/node\_modules/

It shows that the issue was the missing @react-aria/utils dependency. Do your logs show something similar? Perhaps it is some other missing dependency

---

<div class="post-metadata">

**Author:** ![cjhetzle](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cjhetzle/32/21313_2.png) [@cjhetzle](https://talk.openmrs.org/u/cjhetzle)\
**Post date:** [May 4, 2026, 12:33pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/9 "2026-05-04T12:33:45Z")

</div>

[mvn openmrs-sdk:setup.log.txt](https://talk.openmrs.org/uploads/short-url/gzFd7uZ7htjtJQRFMtjCI2GDZU.txt) (28.0 KB)

Okay, I attached the entire output.

I get this same error on a MacBook, Fedora 43, and fresh Fedora 44 installation.

I’ve used SDKMAN to install the following versions of

Java: openjdk version “1.8.0\_482” OpenJDK Runtime Environment (build 1.8.0\_482-b10) OpenJDK 64-Bit Server VM (build 25.482-b10, mixed mode)

Maven: Apache Maven 3.9.15 (98b2cdbfdb5f1ac8781f537ea9acccaed7922349) Maven home: /home/cameron/.sdkman/candidates/maven/current Java version: 1.8.0\_482, vendor: BellSoft, runtime: /home/cameron/.sdkman/candidates/java/8.0.482-librca/jre Default locale: en\_US, platform encoding: UTF-8 OS name: “linux”, version: “6.19.14-300.fc44.x86\_64”, arch: “amd64”, family: “unix”

---

<div class="post-metadata">

**Author:** ![cjhetzle](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cjhetzle/32/21313_2.png) [@cjhetzle](https://talk.openmrs.org/u/cjhetzle)\
**Post date:** [May 4, 2026, 10:45pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/10 "2026-05-04T22:45:30Z")

</div>

I just want to add that I did find this other setup page: [O3 Setup, Configuration & Deployment](https://openmrs.atlassian.net/wiki/spaces/docs/pages/26936930/O3+Setup+Configuration+Deployment?idOrigin=joinProductConsent)

In this walkthrough, it mentions

To ignore ‘peerDependencies’ when building the frontend, you can use the following command:

`$ mvn openmrs-sdk:setup -DignorePeerDependencies=true`

By setting the ‘ignorePeerDependencies’ property to ‘true’, you can mitigate the following error:

`Module not found: Error: Can't resolve '@openmrs/esm-react-utils' in '/tmp/openmrs-sdk-node11424498487737231975/npm-cache/_npx/9145365975c7e340/node_modules/@openmrs/esm-styleguide/src/error-state'`

* * *

This seems like it’s BASICALLY the same issue that we are running into but even running with this flag doesn’t fix the issue.

---

<div class="post-metadata">

**Author:** ![cjhetzle](https://talk.openmrs.org/user_avatar/talk.openmrs.org/cjhetzle/32/21313_2.png) [@cjhetzle](https://talk.openmrs.org/u/cjhetzle)\
**Post date:** [May 5, 2026, 1:45pm UTC](https://talk.openmrs.org/t/build-failure-mvn-openmrs-sdk-setup-linux-mint/49325/11 "2026-05-05T13:45:52Z")

</div>

Seems this was due to an old CI Automation being missed when migrating jobs to GH Actions. As discussed in the openmrs3 channel here: [Slack](https://openmrs.slack.com/archives/CHP5QAE5R/p1777913511355159)

If you experienced this issue, try syncing your fork now and rebuilding.
