更新到版本 1.18.10 后 Nodemon 不工作

Nodemon not working after updating to version 1.18.10

nodemon 之前在我的 mac 中运行良好,我将其更新到最新版本,当我尝试启动它时,我不断收到以下错误。

错误:

[nodemon] Internal watch failed: errmap.get is not a function or its return value is not iterable

我尝试卸载并重新安装,但错误似乎并没有消失。

有人在 mac 上遇到与 nodemon 类似的问题吗?

最后,在尝试了不同的解决方案后,我将我的节点版本从 10.x 更新为 11.x,并且成功了。