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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...