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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...