I have my packaged electron app using electron-packager and I want to run this app in any mac which doesn't have node installed. I was suggested that electron-packager bundles the node into my app, but when I try launching it on a mac I get the 'node command not found error'.
I get this because I invoke a child process in my application that executes a node command to run a script. In electron slack, I was suggested to run my electron process as plain node process by setting the environment variable ELECTRON_RUN_AS_NODE. I cannot figure out where and how I can set this, any idea on how to do this? Also, is this going to solve the issue?