macOS:iTerm2:重复:“npx:--shell-auto-fallback 已删除”

问题描述

macOS iTerm2 卡住重复打印错误,因此无法访问此 shell 以纠正任何问题。

问题详情:

我做了一个 brew cleanup 并且有些东西搞砸了,iTerm2 现在重复显示...

Last login: Sun Feb  7 19:27:56 on ttys000
npx: the --shell-auto-fallback argument has been removed.
See `npm help exec` for more information
npx: the --shell-auto-fallback argument has been removed.
See `npm help exec` for more information
npx: the --shell-auto-fallback argument has been removed.
See `npm help exec` for more information
***

环境详情:

  • 笔记本电脑是 ma​​cOS (Mojave 10.14.6)
  • 终端是 iTerm2 3.2.9 应用
  • 代码主要在节点
  • 认 shell 是 zsh

解决尝试:

我遇到了最近的 StackOverflow:npx: the shell-auto-fallback argument has been removed

但是,这无济于事,因为在永久打印期间我无法键入任何内容

我尝试在 iTerm2 中覆盖 shell 以停止使用 zsh 而是使用 bash,但这也无济于事:

enter image description here

帮助!

我没有想法。 任何建议都会有所帮助。谢谢。

解决方法

搞砸了太多。

  • 恢复的 macOS
  • 重新安装brew
  • 重新安装一切zsh
  • 重新安装所有节点

现在一切都很好。

重要提示:有 Time Machine 备份,我没有。那会为我节省很多工作

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...