You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
After updating to latest ionic CLI, some users on OSX (at least) seem to fail to create new projects. ionic start projectname --v2
fails with Unable to run exec commandError: stderr maxBuffer exceeded (CLI v2.0.0-beta.17)
The default value of maxBuffer in Node.js is 200KB.
Going through the code at CLI, the actual buffer size problem can be tracked back to ionic-app-lib/lib/start.js
At Start.runExecCommand, the childProcess.exec fills the buffer.
Testing with pumping up the buffer size: childProcess.exec(command, {maxBuffer: 10240 * 500}, function(err, stdout, stderr) {
resolves this, and ionic start works again. For some reason, my first try at 1024 * 500 was not enough, had to be larger - then tested with the very large value of 10240 * 500 with success...
Quick fix is to pump up the buffer size, but maybe use spawn instead of exec, if this child process potentially returns a lot of data?
Activity
tlancina commentedon Apr 4, 2016
Switched to spawn in the latest beta, thanks!