ERR_FS_FILE_TOO_LARGE
尝试读取大于 fs.readFile()
支持的 2 GiB 限制的文件。这不是 Buffer
的限制,而是一个内部 I/O 约束。为了处理更大的文件,请考虑使用 fs.createReadStream()
分块读取文件。
¥An attempt was made to read a file larger than the supported 2 GiB limit for
fs.readFile()
. This is not a limitation of Buffer
, but an internal I/O constraint.
For handling larger files, consider using fs.createReadStream()
to read the
file in chunks.