终端进程命令未能启动退出代码:0 和退出代码:2 [英] The terminal process command failed to launch exit code:0 and exit code:2
本文介绍了终端进程命令未能启动退出代码:0 和退出代码:2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
visual studio 代码终端不工作.
终端的快捷键 ctrl+"
不起作用.
The visual studio code terminal is not working.
The shortcut ctrl+"
for the terminal is not working.
错误:
The terminal process terminated with exit code: {0}
终端进程命令
'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' failed to launch (exit code: {2})
推荐答案
尝试为防病毒程序中的 winpty-agent.exe 创建例外规则.
File location:
C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release\winpty-agent.exe
如果第一个解决方案对您不起作用,您可以尝试为存储 winpty-agent.exe 的整个文件夹创建例外规则 => "realese"
If first solution doesnt work for you, you can try to create exception rule for the whole folder where winpty-agent.exe is stored => "realese"
Folder location:
C:\Program Files\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release
2020 年 3 月 21 日更新我还必须在 appdata/local 中为 winpty-agent.exe 的恶意软件字节数做一个例外
Update 21.3.2020 I also had to make an exception in malwarebytes for winpty-agent.exe in appdata/local
C:\Users\myusername\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules.asar.unpacked\node-pty\build\Release\winpty-agent.exe
这篇关于终端进程命令未能启动退出代码:0 和退出代码:2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文