I have an app that runs fine if I run it interactively via cmd.exe, when spawned from another program it takes the first argument I pass to the packaged application and tries to resolve it in the source root folder and the first arg is attempted to be resolved.
internal/modules/cjs/loader.js:801
throw err;
^
Error: Cannot find module 'c:\w\efa\http:\google.com'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:798:15)
at Module._load (internal/modules/cjs/loader.js:691:27)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at Function.Module.runMain (internal/modules/cjs/loader.js:1038:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}