node-regedit
node-regedit copied to clipboard
Specify max buffer of execFile
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.
Is there any fix for this yet? Logging some of the paths will easily exceed the max buffer size.
Had to manually edit this for my use case, as the buffer is larger than the default setting. Would be great if this could be done, as it's not that complex, just another argument that needs to be passed into childProcess.execFile.