(Angular)Watchpack错误(观察者):错误:ENOSPC:达到文件观察者数量的系统限制

分享于2022年07月17日 angular node.js typescript visual-studio-code 问答
【问题标题】:(Angular)Watchpack错误(观察者):错误:ENOSPC:达到文件观察者数量的系统限制((Angular) Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached)
【发布时间】:2022-01-22 23:52:10
【问题描述】:

我正在尝试用 Angular 制作一个项目,但是当我尝试编译时,它会一遍又一遍地向我显示这些错误,直到我的 IDE 关闭。

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' 

我正在使用角度 12 和节点 14.17.6


【解决方案1】:

您可以查看 here 以增加手表的尺寸。

  • 非常感谢@Jerethom !!!