最近调试前端,打开idea的terminal窗口时闪退了,查看idea日志

发现报错:

java.util.concurrent.ExecutionException: Failed to start [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe, -NoExit, -ExecutionPolicy, Bypass, -File, ...

Caused by: com.pty4j.windows.conpty.LastErrorExceptionEx: CreateProcessW failed: GetLastError() returned 5: 拒绝访问。

解决方案:

增加一行:

-Dcom.pty4j.windows.disable.bundled.conpty=true

更多推荐