[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
我尝试杀死 Node 进程,也尝试运行
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
最佳答案
我也遇到了同样的问题。
sudo launchctl 限制最大文件数 65536 200000
为我工作。在这里找到它:https://wilsonmar.github.io/maximum-limits/
关于Node.JS [nodemon] 内部监视失败 : ENFILE: file table overflow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61340293/