简体   繁体   中英

macOS: iTerm2: repetitive: “npx: --shell-auto-fallback removed”

macOS iTerm2 is stuck repetitively printing out errors, thereby this shell is inaccessible to correct any problems.

Problem Details:

I did a brew cleanup and something got messed up, and iTerm2 is now repetitively displaying...

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
***

Environment Details:

  • Laptop is macOS (Mojave 10.14.6)
  • Terminal is iTerm2 3.2.9 app
  • Code primarily in node
  • Default shell is zsh .

Resolution Attempts:

I came across the recent StackOverflow: npx: the shell-auto-fallback argument has been removed

However, this will not help because I am unable to key in anything while this is perpetually printing.

I tried overriding shell in iTerm2 to stop using zsh and instead use bash , but that did not help either:

在此处输入图像描述

Help!

I am out of ideas. Any suggestions will be helpful. Thank you.

Too much was messed up.

  • Restored macOS
  • Reinstalled brew
  • Reinstalled everything zsh
  • Reinstalled everything node

Now everything is good.

IMPORTANT: Have a Time Machine backup, I did not. That would have saved me a lot of work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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