Most "it builds locally but fails in CI" problems come from a short list of repeat offenders. The ranked list below collects 20 of the most common build and deploy errors on Vercel, Next.js and npm, each with the precise fix - no fluff, no generic advice.
Work top-down: the first red line in the build log is almost always the real cause; wrappers like ELIFECYCLE just sit on top of it.