Archive

Error When running "npm run build" MAC

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

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
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!