Nodemon错误:达到文件监视程序数量的系统限制 [英] Nodemon Error: System limit for number of file watchers reached

查看:51
本文介绍了Nodemon错误:达到文件监视程序数量的系统限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 graphql ,并使用 prisma-binding 进行graphql操作.启动节点服务器时,我遇到此 nodemon 错误,它为我提供了由 graphql-cli 自动生成的模式文件的路径.谁能告诉我这个错误的全部含义是什么?

I'm learning graphql and using prisma-binding for graphql operations. I'm facing this nodemon error while I'm starting my node server and its giving me the path of schema file which is auto generated by a graphql-cli. Can anyone tell me what this error is all about?

错误:

Internal watch failed: ENOSPC: System limit for number of file watchers reached, watch '/media/rehan-sattar/Development/All projects/GrpahQl/graph-ql-course/graphql-prisma/src/generated

推荐答案

如果您使用的是Linux,则您的项目已达到系统文件查看器的限制

If you are using Linux, your project is hitting your system's file watchers limit

要解决此问题,请在您的终端上尝试:

To fix this, on your terminal, try:

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

这篇关于Nodemon错误:达到文件监视程序数量的系统限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆