desktop / desktop

Focus on what matters instead of fighting with Git.
https://desktop.github.com
MIT License
19.76k stars 9.42k forks source link

GitHub Desktop encountered an error when clicked on 'Open in VS Code' button #19462

Open FaisalJamil-DITS opened 1 day ago

FaisalJamil-DITS commented 1 day ago

The problem

Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT at node_internal_captureLargerStackTrace (node:internal/errors:563:5) at node_internal_errnoException (node:internal/errors:690:12) 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)

Release version

Version 3.4.8 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

No response

Additional context

No response

DemureSiwe commented 1 day ago

I'm experiencing the same issue.

steveward commented 1 hour ago

Could you open the command prompt and share the output of echo %PATH%?

If System32 is not in your PATH, you will see that ENOENT error. You will need to edit your PATH by following this article and adding the following line:

C:\Windows\system32

Let me know if that doesn't get things working.