Error Code Portal
Node.jsNode.jsError code

ERR_FS_FILE_TOO_LARGE

fs file too large

Code ERR_FS_FILE_TOO_LARGE · An issue reported by Node.js.

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.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.