Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.JS [nodemon] Internal watch failed: ENFILE: file table overflow

[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

I tried killing node process, and also tried running

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p I get

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

But these doesn't seem to work. I'm using macOS 10.15.3

like image 898
Murali K Avatar asked Dec 08 '25 17:12

Murali K


1 Answers

I was having the same problem.

sudo launchctl limit maxfiles 65536 200000

worked for me. Found it here: https://wilsonmar.github.io/maximum-limits/

like image 125
jon Avatar answered Dec 11 '25 12:12

jon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!