简体   繁体   English

在 WebStorm 中打开终端时出错

[英]Error opening terminal in WebStorm

I am using WebStorm for an Angular project from past 6 months and suddenly now when I try to access terminal in WebStorm I am getting an error message我在过去 6 个月中将 WebStorm 用于 Angular 项目,现在突然当我尝试访问 WebStorm 中的终端时,我收到一条错误消息

java.io.IOException: Couldn't create PTY java.io.IOException: 无法创建 PTY

could not actually understand the cause of this.无法真正理解造成这种情况的原因。

在此处输入图片说明

在此处输入图片说明

This error occurs because the IDE is not finding the correct shell path for your installed git version.出现此错误是因为 IDE 没有为您安装的 git 版本找到正确的 shell 路径。

To solve this, go to the File -> Settings -> Tools -> Terminal menu and change the Shell path based on the installed git version.要解决此问题,请转到File -> Settings -> Tools -> Terminal菜单并根据安装的 git 版本更改 Shell 路径。

On Windows do:在 Windows 上执行:

for 64bit:对于 64 位:
"C:\\Program Files\\Git\\bin\\sh.exe" -login -i

for 32bit:对于 32 位:
"C:\\Program Files (x86)\\Git\\bin\\sh.exe" -login -i

Don't forget the quotes around the command.不要忘记命令周围的引号。

And Linux:和 Linux:

/usr/bin/zsh , /usr/bin/bash or the Shell path for your system. /usr/bin/zsh/usr/bin/bash或系统的 Shell 路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM