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!

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...