エラーコードポータル
Node.jsNode.jsエラーコード

ERR_FS_FILE_TOO_LARGE

fs file too large

コード ERR_FS_FILE_TOO_LARGE · Node.jsが報告した問題です。

fs.readFile() でサポートされている 2 GiB 制限を超えるファイルを読み取ろうとしました。これはバッファの制限ではなく、内部 I/O 制約です。より大きなファイルを処理する場合は、 fs.createReadStream() を使用してファイルをチャンクで読み取ることを検討してください。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

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.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。