Tengo un pequeño script que captura el teclado globalmente, para esto he estado usando node-global-key-listener . En un proyecto de Node simple el script funciona correctamente pero necesito usarlo desde mi aplicación ElectronJS (versión "^16.0.7") y Vue3 donde al acceder me devuelve el siguiente error:
(node:1732) UnhandledPromiseRejectionWarning: Error: spawn D:\RepositoriosSlang\clienteslangGitHub\bin\WinKeyServer.exe ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19) at onErrorNT (node:internal/child_process:477:16) at processTicksAndRejections (node:internal/process/task_queues:83:21) (Use `electron --trace-warnings ...` to show where the warning was created) (node:1732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).El paquete usa un .exe en Windows al que no está accediendo correctamente, ese .exe está en el mismo node_module pero se está buscando en la ruta raíz del proyecto.
¿Hay alguna diferencia entre ejecutar el script con el comando de nodo y usarlo directamente?