forkpty:设备未配置。无法创建新进程并打开伪 tty

问题描述 投票:0回答:0

MacOS 13.3.1 在 MacBook Air M1 上运行

我是一个对shell一窍不通的代码爱好者...

壳牌输出

苹果终端:

[forkpty: Device not configured]
[Could not create a new process and open a pseudo-tty.]

iTerm2:

A session ended very soon after starting. Check that the command in profile "Default" is correct.

我试过的

我正在使用

Default login shell
。还恢复了 Apple 终端设置中的默认配置文件并将编码恢复为默认值。也尝试使用其他配置文件,但也没有用。

其他

我不知道为什么会这样。我通常不使用我的 shell,除了编辑过的

.zshrc
.bashrc
.nvmrc
等。但是在我从最新的系统版本更新我的系统之前,这些都运行良好。有一天,我在试用在 GitHub 上找到的一个 CLI 程序时发现了这个问题。由于提示消息,目前我无法使用我的 shell。

知道为什么会这样吗?我可以尝试用什么方法来解决它?

编辑:关闭并重新启动计算机后问题解决了...

shell apple-m1 tty pty macos-ventura
© www.soinside.com 2019 - 2024. All rights reserved.