Interview Prep/CI/CD/Build Tools, Nexus, SonarQube and Test Failures

`npm run build` fails in CI with `JavaScript heap out of memory`.

IntermediateTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer

Likely causes → Node default heap limit versus project size, or container memory limit.

Diagnose → Check the memory limit and the Node version.

Fix → NODE_OPTIONS=--max-old-space-size=4096 and increase the runner memory.

Prevent → Track bundle and build memory trends.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools, Nexus, SonarQube and Test Failures