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!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...