1

According to the docs:

https://nodejs.org/api/buffer.html#buffer_buffer_constants_max_length

There is a limit of 2GiB for buffers.

Is this a hard limit or can this be changed somehow?

lilezek
  • 6,976
  • 1
  • 27
  • 45

1 Answers1

1

I suppose you're reading a json file, for big json files you should use json streaming, see this answer for more details: https://stackoverflow.com/a/44994896/433041

Oleg Kovalov
  • 734
  • 11
  • 33