1.问题

打开IDEA后,启动终端发现终端报错没有办法正常使用,错误提示

Cannot open Local Terminal
Failed to start [powershell.exe] in D:\vue_admin

Error running process: CreateProcess failed. Code 2
See IDE log (Help | Show Log in Explorer) for the details.

无法打开本地终端

无法在D:\vue_admin中启动[powershell.exe]

运行进程时出错:CreateProcess失败。代码2

有关详细信息,请参阅IDE日志(帮助|在资源管理器中显示日志)。

2.解决办法

打开右上角 File–> setting–> Tools–> 终端 找到Shell  路径 文本框中原本是是powershell.exe,现在把它修改成cmd.exe即可。

 注,之前解决这个错误的时候,看到有些人说改成 C:/system32/cmd.exe ,我在我的软件上行不通,后来改成cmd.exe,保存后错误就消失了。

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 8 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐