jprichardson / node-fs-extra

Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
MIT License
9.43k stars 775 forks source link

Error while writing large JSON. `RangeError: Invalid string length.` #1014

Closed sagarpanchal closed 9 months ago

sagarpanchal commented 1 year ago
RyanZim commented 1 year ago

If you're getting that error, that means the JSON you're trying to write is hitting the memory limit. Running with the --max-old-space-size CLI option may help.