Opennms build failed

Problem:
I have Problem Building opennms.

Expected outcome:
Build Success

OpenNMS version:
28.0.2

Other relevant data:
Below is my error output while building Opennms 28.0.2 on my server CLI.

[INFO] — frontend-maven-plugin:1.11.0:npm (install dependencies) @ org.opennms.core.web-assets —
[INFO] Running ‘npm --prefer-offline --no-progress ci’ in /home/sahil/opennms-28.0.2/core/web-assets
[INFO] npm ERR! code 128
[INFO] npm ERR! Command failed: git clone --depth=1 -q -b master GitHub - bmontgomery/ui-select: AngularJS-native version of Select2 and Selectize /root/.npm/tmp/git-clone-3bcbbe2b
[INFO] npm ERR! fatal: could not create leading directories of ‘/root/.npm/tmp/git-clone-3bcbbe2b’: Permission denied
[INFO] npm ERR!
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! /root/.npm/_logs/2022-08-01T18_21_14_535Z-debug.log

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:09 min
[INFO] Finished at: 2022-08-01T18:21:32Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.0:npm (install dependencies) on project org.opennms.core.web-assets: Failed to r
un task: ‘npm --prefer-offline --no-progress ci’ 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] MojoFailureException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :org.opennms.core.web-assets

logs

Looks like you have a permissions problem?
fatal: could not create leading directories of ‘/root/.npm/tmp/git-clone-3bcbbe2b’: Permission denied

Are you trying to build as root?