Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

393
Views
Ejecutar script de nodo con comando de nodo funciona bien, pero no si lo uso como archivo JS básico

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!