All Apps and Add-ons

Error When running "npm run build" MAC

martyfly
New Member

after trying to follow this

tutorial, I got some errors :

npm run build

> standin@1.0.0 build /Applications/Splunk/share/splunk/app_templates/viz_tutorial_app/appserver/static/visualizations/appTest
> $SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js

sh: /bin/splunk: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! standin@1.0.0 build: `$SPLUNK_HOME/bin/splunk cmd node ./node_modules/webpack/bin/webpack.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the standin@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pierretardif/.npm/_logs/2019-11-07T17_16_19_159Z-debug.log    

Anyhone can help me sort this out?

Thks,

P

Tags (1)
0 Karma

dperre_splunk
Splunk Employee
Splunk Employee

For anyone who comes across this issue I solved it in my docker container by running the following command.

sudo ln -s /opt/splunk/bin/splunk /bin/splunk

Change the first part to match your own directory that you are running Splunk

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...