npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Cannot create a string longer than 0x3fffffe7 characters

Trying to commit a package larger than 1GB. Got the error mesage saying:
npm ERR! code ERR_STRING_TOO_LONG
npm ERR! Cannot create a string longer than 0x3fffffe7 characters

Searched a bit and understood it is due to process.binding('buffer').kStringMaxLength being hardcoded around 1GB. Does anyone know how to change that limit? Or another approach to do what we intend?

Thanks!