lerna: `stdout maxBuffer exceeded`
There are a few existing closed issues on this, but I am still seeing the error in 2.5.1.
https://github.com/lerna/lerna/issues?utf8=✓&q=is%3Aissue stdout maxBuffer is%3Aclosed
lerna info Bootstrapping 24 packages
lerna info lifecycle preinstall
lerna info Installing external dependencies
lerna ERR! execute callback with error
lerna ERR! Error: stdout maxBuffer exceeded
lerna ERR! at PassThrough.stream.on (/usr/pnpm-global/1/node_modules/.registry.npmjs.org/get-stream/3.0.0/node_modules/get-stream/index.js:30:12)
lerna ERR! at emitOne (events.js:120:20)
lerna ERR! at PassThrough.emit (events.js:210:7)
lerna ERR! at addChunk (_stream_readable.js:266:12)
lerna ERR! at readableAddChunk (_stream_readable.js:249:13)
lerna ERR! at PassThrough.Readable.push (_stream_readable.js:211:10)
lerna ERR! at PassThrough.Transform.push (_stream_transform.js:147:32)
lerna ERR! at PassThrough.afterTransform (_stream_transform.js:88:10)
lerna ERR! at PassThrough._transform (_stream_passthrough.js:42:3)
lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately.
(node:7223) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: stdout maxBuffer exceeded
(node:7223) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Executable | Version |
---|---|
lerna --version |
2.5.1 |
npm --version |
5.5.1 |
yarn --version |
1.0.0 |
node --version |
8.4.0 |
OS | Version |
---|---|
RHEL | 5 |
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (8 by maintainers)
Same here, still not fixed
I’m having a related issue when using
lerna run --parallel
with scripts that run for a long time (typically, watch modes).Under some conditions, those scripts have a very high log output. After a while, the lerna command exits with this error:
I’ve never had this issue when launching the individual commands, even with the same high output. Having read other issues in the repo (particularly #278), I also tried the
--stream
option, but it didn’t seem to work either.As it is, those
lerna run
s get interrupted after a while.running with
--max-buffer 100000000
still getting those errors frequently. very annoyingWhen hoisting, either with npm or yarn workspaces, you want to avoid postinstall in the root, as it can cause cycles. With yarn, you don’t need it at all, since
yarn install
does the workspace setup immediately.I suppose we need to figure out a way to avoid wrapping certain
execa
calls with promises. Passing--max-buffer
(or configuringmaxBuffer
in lerna.json) should have worked, but really the underlying issue is that we shouldn’t be buffering a certain class of execution that we never ever want the output from.Playing around locally, it seems pretty much any time we call
ChildProcessUtilities.exec()
the only thing that matters is potential error output…