2
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: src/**/*
[nodemon] starting `ts-node index.ts`
[nodemon] Internal watch failed: ENFILE: file table overflow

我尝试杀死节点进程,也尝试运行

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p 我明白了

sysctl: illegal option -- p
usage: sysctl [-bdehiNnoqx] name[=value] ...
       sysctl [-bdehNnoqx] -a

但这些似乎不起作用。我正在使用 macOS 10.15.3

4

1 回答 1

1

我遇到了同样的问题。

sudo launchctl 限制 maxfiles 65536 200000

为我工作。在这里找到它:https ://wilsonmar.github.io/maximum-limits/

于 2021-04-21T17:10:35.257 回答