错误:ENOSPC:文件监视程序的系统限制达到了角度 [英] Error: ENOSPC: System limit for number of file watchers reached angular
本文介绍了错误:ENOSPC:文件监视程序的系统限制达到了角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在执行Angular 10项目时遇到此错误.
I am getting this error while doing my Angular 10 project.
来自chokidar(/myProject)的错误:错误:ENOSPC:达到文件监视程序数量的系统限制,监视'/myProject/tsconfig.spec.json'
是否有解决此错误的方法?
Is there a method to resolve this error?
推荐答案
您的inotify观察程序遇到了内核限制.您可以运行此命令以将其修复为当前启动状态,
You're running into a kernel limit with your inotify watchers. You can run this to fix it for the current boot,
sudo sysctl -w fs.inotify.max_user_watches=524288
您可以运行它来修复它,以备将来启动时使用,
You can run this to fix it for future boots,
echo "fs.inotify.max_user_watches=524288" \
| sudo tee -a /etc/sysctl.conf
这篇关于错误:ENOSPC:文件监视程序的系统限制达到了角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文