Suddenly I started to get the next error message when trying to open the PowerShell Terminal window in VSCode:
The terminal process failed to launch: A native exception occurred during launch (Cannot create process, error code: 740).
What is the reason for it?
(There are similar questions on SO, but with other error codes, which are not helpful)
Here is a similar question on GitHub. In short, the problem is in pwsh.exe → Properties → 'Compatibility' tab → 'Run this program as an administrator' setting. In my case pwsh.exe is C:\Program Files\PowerShell\7\pwsh.exe
You can fix it in two ways:
pwsh.exeIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With