Skip to content

Specify max buffer of execFile #72

@pd4d10

Description

@pd4d10

If the stdout exceeds the default max buffer size(1024 * 1024), it would throw an error:

UnhandledPromiseRejectionWarning: RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded

Reference: https://nodejs.org/api/child_process.html#child_process_maxbuffer_and_unicode

Seems it is necessary to add an option to specify it.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions