Packing external modules: stderr maxBuffer exceeded
See original GitHub issueI am using gitlab ci for building and deploy with serverless and i am getting this error.
Serverless: WARNING: Could not determine version of module nodes2ts
Serverless: Adding explicit peers for dependency graphql-tools
Serverless: WARNING: Could not determine version of module long
Serverless: Package lock found - Using locked versions
Serverless: Packing external modules: ramda@^0.24.1, nodes2ts, aws-sdk@^2.122.0, graphql-tools@^1.2.3, graphql@^0.11.3, jsonwebtoken@^8.1.0, apollo-server-lambda@^1.1.2, handlebars@^4.0.11, long
Error --------------------------------------------------
stderr maxBuffer exceeded
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: linux
Node Version: 6.10.3
Serverless Version: 1.24.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Unable to package due to exceeding maxBuffer length
Issue that seems to address my problem regarding webpack but I am not using webpack. github.com/serverless/serverless · Packing external modules ...
Read more >node.js - exec error: Error: stdout maxBuffer exceeded if using ...
exec() will buffer stdout . Spawns a shell then executes the command within that shell, buffering any generated output. (From the docs.).
Read more >Pipelines maxBuffer exceeded - Atlassian Community
I've tried different solutions like the "--silent" option in npm and bower, exporting the output of these package managers to an external log ......
Read more >The Difference Between Node.js 10 LTS and Node.js 12 LTS
A new "exports" field can be added to a module's package.json file to ... When the maxBuffer option is passed, stdout and stderr...
Read more >Differences between spawn and exec of child_process - Aleen
If the child process returns anything more than that, you program will crash with the error message "Error: maxBuffer exceeded". You can fix...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Probably it is because i use npm 5 on local machine and npm 3 on docker.
@HyperBrain in my case I use a lerna repo. And some of the packages use serverless-webpack, while others do not (they don’t even have functions often; but they have plugins). So I still benefit from having one root / project level package.json with all dev dependencies.
For now I will just use
forceExclude
; it’s only been a problem with aws-sdk. Still, I think this is a fair case, it would be better if it would include Nth level dependencies.