Skip to content

Expicitly ignore output from npm install - #217

Merged
hzoo merged 1 commit into
lerna:masterfrom
gigabo:bootstrap-spawn
Jun 14, 2016
Merged

hzoo merged 1 commit into
lerna:masterfrom
gigabo:bootstrap-spawn

Conversation

@gigabo

@gigabo gigabo commented Jun 13, 2016

Copy link
Copy Markdown
Contributor

This output was getting discarded, anyway. This avoids buffering it
(and potentially failing due to exceeding maxBuffer).

This fixes #213.

This output was getting discarded, anyway.  This avoids buffering it
(and potentially failing due to exceeding `maxBuffer`).

This fixes lerna#213.
@laurentdesmet

Copy link
Copy Markdown
Contributor

Is there a reason to set the stdio to ignore instead of inherit? Now, there is no visual feedback during the bootstrap command, that can take a while. The drawback is of course that the 'npm install' commands are executed in parallel, which causes the output to be interleaved...

@gigabo

gigabo commented Jun 13, 2016

Copy link
Copy Markdown
Contributor Author

Is there a reason to set the stdio to ignore instead of inherit?

Just preservation of existing behavior. Currently the only feedback from bootstrap is the progress bar that ticks after each package completes. The output from the npm install processes is captured and discarded. This patch just skips the capture part. ;)

@hzoo
hzoo merged commit f81b12a into lerna:master Jun 14, 2016
@joscha joscha mentioned this pull request Jun 24, 2016
@lock

lock Bot commented Dec 28, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

maxBuffer exceeded because of using exec instead of spawn

3 participants