xtyrrell / undollar

undollar eats the dollar sign in the command you just pasted into your terminal
MIT License
166 stars 4 forks source link

Unhandled 'error' event / Error: spawn echo ENOENT / Emitted 'error' event on ChildProcess instance #2

Open enzomtpYT opened 7 months ago

enzomtpYT commented 7 months ago

When executing "$ echo "Hello World!"" in w11 terminal using powershell :

> $ echo "Hello World!"
node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn echo ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn echo',
  path: 'echo',
  spawnargs: [ 'Hello World!' ]
}

Node.js v20.9.0