Having a problem running a node script on osx electron app

Viewed 27

I'm trying to bundle simple sniffer with as ws server in it publishing updates to frontend when some package condition triggered.

Question is how can I elevate and run this node process with admin privileges(to access network interface) in background. Sudo-prompt works just fine but I'm getting error on startup saying node is not found.

node: command not found

Stack is:
electron: 18.3.0
electron-builder: 23.0.9
node-cap: 0.2.1

Is there any best-practices in this subject and how can I possibly run it?

0 Answers
Related