Installation

NPM Run Build issue on MAC

kondrusiva3
New Member

Hi Team,

Here is the error log that am getting while trying to build the app, i have seen few recommendation to use "%" in the build path $SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js, but i think thats a fix for Windows machine, could you please gimme a solution the path setting on MAC.

Error Log :
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using npm@6.9.0
3 info using node@v10.16.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle standin@1.0.0~prebuild: standin@1.0.0
6 info lifecycle standin@1.0.0~build: standin@1.0.0
7 verbose lifecycle standin@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle standin@1.0.0~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle standin@1.0.0~build: CWD: /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter
10 silly lifecycle standin@1.0.0~build: Args: [ '-c',
10 silly lifecycle '$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js' ]
11 info lifecycle standin@1.0.0~build: Failed to exec build script
12 verbose stack Error: standin@1.0.0 build: $SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at ChildProcess.emit (events.js:198:13)
12 verbose stack at maybeClose (internal/child_process.js:982:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
13 verbose pkgid standin@1.0.0
14 verbose cwd /Applications/Splunk/etc/apps/viz_tutorial_app/appserver/static/visualizations/radial_meter
15 verbose Darwin 18.7.0
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
17 verbose node v10.16.0
18 verbose npm v6.9.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error standin@1.0.0 build: $SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js
23 error spawn ENOENT
24 error Failed at the standin@1.0.0 build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

Thanks in advance...!!

Labels (2)
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!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...