Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Angular) Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached

I'm trying to make a project in angular but when I try to compile it shows me these errors over and over till my IDE closes.

Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers 
reached, watch '/home/pedro/Universidad/Vacas-Dic2021/Archivos/LAB/MIA_Proyecto2_201709146_201900612/SoccerStatistics/node_modules/typescript'
Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers 
reached, watch '/home/pedro/Universidad/Vacas-Dic2021/Archivos/LAB/MIA_Proyecto2_201709146_201900612/SoccerStatistics/node_modules/typesript/lib' 

I'm using angular 12 and node 14.17.6

like image 986
Pedro Castro Avatar asked Oct 18 '25 11:10

Pedro Castro


1 Answers

If you can not increase the size of the watch (fs.inotify.max_user_watches), you can still compile angular using this command :

ng serve --watch --live-reload --poll 2000

Worked for me, and I am using virtual-studio-code as IDE

like image 82
Pyx Avatar answered Oct 20 '25 00:10

Pyx



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!