I found out that node v10.16.3
and node v10.19.0
have this issue. When upgrading to node v12.16.1
it works without a problem.
The default maxBuffer
size in v10 is 200KB, the default maxBuffer
in v12 is 1MB.
https://nodejs.org/docs/latest-v10.x/api/child_process.html
https://nodejs.org/docs/latest-v12.x/api/child_process.html