Nodemon 错误:已达到文件观察者数量的系统限制 [英] Nodemon Error: System limit for number of file watchers reached
本文介绍了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屋!
查看全文