I am using a node package that allows me to get control of the cmd: https://www.npmjs.com/package/node-cmd
My problem is that I am running into a stdout maxBuffer exceeded
error. I have found a question that answers this problem:
Stdout buffer issue using node child_process
My problem is, how do I apply this answer to the node-cmd
package's cmd.run
or cmd.get
calls?
Example of a call that is giving the error: (ng build
runs a BIG Angular command)
cmd.get('ng build', (err, data, stderr) => {
...
});
I am not sure where to insert something like {maxBuffer: 1024 * 500}