Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ERR_CHILD_PROCESS_STDIO_MAXBUFFER error #454

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

splix
Copy link
Contributor

@splix splix commented Oct 20, 2019

After upgrading to 0.3.2 I started to get following error:

$ neon build --release
neon ERR! stdout maxBuffer length exceeded

RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
    at Socket.onChildStdout (child_process.js:348:14)
    at Socket.emit (events.js:189:13)
    at addChunk (_stream_readable.js:284:12)
    at readableAddChunk (_stream_readable.js:261:13)
    at Socket.Readable.push (_stream_readable.js:220:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:94:17)

I use NodeJS 10 LTS which has only 200kb, and it seems to be not enough. NodeJS 12 has 1Mb by default, and it works fine on another machine.

PR increases the buffer to 1Mb and fixes error for my case

cli/src/project.ts Outdated Show resolved Hide resolved
@kjvalencik kjvalencik merged commit 9f159ad into neon-bindings:master Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants