尝试在启用 NODE_NO_READLINE 的 eshell 中运行 node。例如,您可以通过在 eshell 中运行以下命令来添加一个别名: alias node 'NODE_NO_READLINE=1 node'