Hi everyone,
I'm encountering an issue when running a pipeline in Bitbucket to build a React application using Docker. During the npm run build
step, the process fails with the following error message:
The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process.
While the error message suggests a memory issue, it's surprising because the application itself is very basic.
Has anyone experienced a similar issue with a simple app, or has any ideas on what could be causing the build process to fail? Any suggestions on how to troubleshoot or resolve this would be greatly appreciated.
Thanks for your help!
An easy thing to try is changing to "size" to "2x", "4x" or even "8x".
Large "size" setting results in more CPU and more memory! If you set it to "8x" and it still fails with that error message, then it is not likely an issue with the memory available.
See: https://support.atlassian.com/bitbucket-cloud/docs/global-options/#Size
Thank you for the response, in the end, the solution was to add:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.