Dashboards & Visualizations

Error when running "npm run build"

amiftah
Communicator

Hello,

Im trying to build a visualization but I can't run "npm run build", any help?
Here's the error:

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! radial_meter@1.0.0 build: `$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the radial_meter@1.0.0 build script '$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the radial_meter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     $SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs radial_meter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls radial_meter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Program Files\Splunk\etc\apps\Multiforce_Sample\appserver\static\visualizations\radial_meter\npm-debug.log

Thank you!

0 Karma

poete
Builder

Hello @amiftah,

as you are running npm on windows, please check if the package.json file, the $SPLUNK_HOME is replaced by %SPLUNK_HOME%

0 Karma

bizsplunk
Engager

hi all , somebody fixed the issue?
i have same problem

0 Karma

hwakonwalk
Path Finder

Have you fixed this issue? how you did it?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...