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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...