错误:EMFILE:打开的文件过多,请打开“ /app/build/index.html”

问题描述

使用Serve服务我的React应用程序。似乎有太多人正在阅读静态文件。但不知何故它没有关闭。因此,React应用程序崩溃了

events.js:177
      throw er; // Unhandled 'error' event
      ^

Error: EMFILE: too many open files,open '/app/build/index.html'
Emitted 'error' event on ReadStream instance at:
    at internal/fs/streams.js:151:12
    at FSReqCallback.oncomplete (fs.js:155:23) {
  errno: -24,  code: 'EMFILE',  syscall: 'open',  path: '/app/build/index.html'
}

有什么建议吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)