# Vercel build failed

> Find the real error in a failed Vercel build log, check memory, disk and 45 minute limits, and fix pnpm, output directory and build command mistakes.

Canonical: https://scaplet.com/errors/cdn/vercel-build-failed

Guide Error · CDN and hosting errors

Find the real error in a failed Vercel build log, check memory, disk and 45 minute limits, and fix pnpm, output directory and build command mistakes.

4 min

read

3

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

A failed Vercel build means the Build step exited with an error, and the last red line usually hides the cause. Scroll up in the build log to the first Error, reproduce it with your build command locally, then check the documented limits: 8192 MB memory, 32 GB disk and 45 minutes. Configuration errors such as a wrong output directory have specific fixes.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-build-failed%20(%22Vercel%20build%20failed%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-build-failed%20(%22Vercel%20build%20failed%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-build-failed%20(%22Vercel%20build%20failed%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-build-failed%20(%22Vercel%20build%20failed%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

8192 MB

Build memory

32 GB

Build disk

45 minutes

Max build time

4

Build CPUs

_01_Check it

## Where in the pipeline it failed

Vercel says the total build duration includes three steps: building, checking and assigning domains. A deployment can also fail before any build log exists. Vercel lists these as examples: an invalid `vercel.json` committed, Ignored Build Steps, commits from a contributor who is not a team member, and a Marketplace integration resource that failed to provision. In those cases the **Building** accordion is missing and an overlay shows the error instead.

Order of work for a Git deployment, per Vercel's docs

```
git push | v [Provisioning Integrations] Marketplace resources, deployment actions (if connected) | v [Build] Install Command -> Build Command <- most failures happen here | v [Checking] | v [Assigning domains]
```

_02_How it works

## Read the log the right way

1. 1

### Open the failed deployment

Dashboard, your project, **Deployments**, then the deployment with the error status. In **Deployment Details** expand the **Building** accordion.
2. 2

### Find the first Error, not the last

Scroll to the red section where "Error" is mentioned. Vercel warns that the last mention often says only something like `yarn run build exited with 1`. The informative line is a few lines above.
3. 3

### Reproduce it locally

Vercel recommends building locally first, using your project's own build command. That catches problems in your code or dependencies before a deploy does.
4. 4

### Turn on the system report if you suspect memory

Set `VERCEL_BUILD_SYSTEM_REPORT=1` as an environment variable to get a resource report for every deployment. By default it appears only when a problem is detected.

Reader's own project: run what Vercel runs (swap in your build command)

```
npm ci npm run build echo "exit code: $?"
```

If the build passes locally and fails on Vercel, compare the Node.js version, the package manager and the Root Directory. Vercel derives the build cache key from those same settings, so they are the ones that differ most often between machines.

_03_Build container resources from Vercel's troubleshooting guide

## Limits that cancel a build

Resource

### Memory

Allocation

8192 MB

What happens past it

Build is cancelled

Resource

### CPUs

Allocation

4

What happens past it

Number allocated for build processing

Resource

### Disk space

Allocation

32 GB

What happens past it

Build is cancelled

Resource

### Build duration

Allocation

45 minutes maximum

What happens past it

Deployment is cancelled and the error shows in the build logs

For memory errors, Vercel's steps are to identify the package named in the error and check whether its documentation lets you tune memory through an install or build command, to cut the JavaScript you ship or use a more efficient bundler, and to review what you import, such as third-party services, icons and media. The report also flags files over 100 MB.

_04_Errors from Vercel's error list and how each is fixed

## Documented configuration failures

Error

### Missing public directory

Cause

The output directory is missing, empty or invalid

Fix

Check the Output Directory in project settings, then the build command and Root Directory, and confirm files are generated locally

Error

### Recursive invocation of commands

Cause

The Build Command runs `vercel build` itself

Fix

Make it call your framework's build command, or turn off **Override** to use the Framework Preset default

Error

### ERR_PNPM_UNSUPPORTED_ENGINE

Cause

`engines.pnpm` in package.json does not match the running pnpm version

Fix

Enable Corepack and set `packageManager`, or remove `engines.pnpm`

Error

### Team access required to deploy.

Cause

The commit author has no Vercel account, or Manual Approval is on

Fix

A team Owner approves membership, or the author creates an account and links their Git provider

package.json: keep engines.pnpm and packageManager in step (from Vercel's docs)

```
{ "engines": { "pnpm": "^7.5.1" }, "packageManager": "pnpm@7.5.1" }
```

With that file, set the environment variable `ENABLE_EXPERIMENTAL_COREPACK` to `1`. Vercel adds that `engine-strict` cannot be used to solve this error, because it only handles dependencies.

_05_Ways to build without the cache

## Rule out a stale cache

A failed build does not change the existing cache, and a successful one updates it. If you suspect a poisoned cache, Vercel lists these ways to skip it.

Method

### Redeploy with **Use existing Build Cache** unchecked

Effect

One deployment builds from scratch

Method

### `vercel --force` with the CLI

Effect

Builds and deploys without the Build cache

Method

### Env var `VERCEL_FORCE_NO_BUILD_CACHE` set to `1`

Effect

Skips restoring the cache; a successful build still uploads a fresh one

Method

### Env var `VERCEL_FORCE_NO_BUILD_CACHE_UPLOAD` set to `1`

Effect

Skips uploading the cache; the existing one is left unchanged

_06_Explained

## What a failed build means for crawlers

A build failure is not an HTTP response, so crawlers do not see it directly. They see whatever the domain serves at the moment, so the risk is a deployment that builds but ships wrong output, such as a missing output directory producing 404s. After a fix, request your key URLs and confirm status codes; Google says URLs already indexed that return `4xx` are removed from the index, and `5xx` URLs are eventually dropped. For the runtime side of Vercel failures see [Vercel 500](/errors/cdn/vercel-500).

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ What is the Vercel build time limit?

A build can last a maximum of 45 minutes, covering building, checking and assigning domains. Past that, the deployment is cancelled and the error appears in the build logs.

_02_ Why is there no build log on my failed Vercel deployment?

Vercel can fail a deployment before the build starts, for example with an invalid vercel.json, an Ignored Build Step, a commit from a non-member, or a Marketplace resource that failed to provision. The error appears in an overlay instead.

_03_ How do I redeploy on Vercel without the cache?

Use Redeploy on the deployment with Use existing Build Cache unchecked, or run `vercel --force`, or set VERCEL_FORCE_NO_BUILD_CACHE to 1.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- vercel.com
- google.com

1. 01 [Vercel docs: Troubleshooting Build Errors](https://vercel.com/docs/deployments/troubleshoot-a-build) vercel.com · checked 2026-11-01
2. 02 [Vercel docs: Error List](https://vercel.com/docs/errors/error-list) vercel.com · checked 2026-11-01
3. 03 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-11-01

## Keep learning

[All errors](/errors)

[Learn Vercel domain not working CDN and hosting errors](/errors/cdn/vercel-domain-not-working) [Related HTTP status codes Crawling and indexing](/glossary/http-status-codes) [Read next Netlify build failed CDN and hosting errors](/errors/cdn/netlify-build-failed) [Do Run a free site audit Free, about two minutes](/site-audit)

More Vercel errors
[Vercel 413: FUNCTION_PAYLOAD_TOO_LARGE](/errors/cdn/vercel-payload-too-large) [Vercel 429: Too Many Requests](/errors/cdn/vercel-429) [Vercel 500: Internal Server Error](/errors/cdn/vercel-500) [Vercel domain not working](/errors/cdn/vercel-domain-not-working) [Vercel FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout)

More in CDN and hosting errors
[Heroku 503 Service Unavailable](/errors/cdn/heroku-503) [Heroku H10: App crashed](/errors/cdn/heroku-h10-app-crashed) [Heroku H12: Request timeout](/errors/cdn/heroku-h12-request-timeout) [Heroku H13: Connection closed without response](/errors/cdn/heroku-h13) [Heroku H14: No web processes running](/errors/cdn/heroku-h14) [Netlify build failed](/errors/cdn/netlify-build-failed) [Netlify function timeout](/errors/cdn/netlify-function-timeout) [Render 502 Bad Gateway](/errors/cdn/render-502) [S3 Access Denied (403 Forbidden)](/errors/cdn/s3-access-denied) [Vercel 413: FUNCTION_PAYLOAD_TOO_LARGE](/errors/cdn/vercel-payload-too-large) [Vercel 429: Too Many Requests](/errors/cdn/vercel-429) [Vercel 500: Internal Server Error](/errors/cdn/vercel-500) [Vercel build failed](/errors/cdn/vercel-build-failed) [Vercel domain not working](/errors/cdn/vercel-domain-not-working) [Vercel FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout) [Vercel: too many redirects](/errors/cdn/vercel-too-many-redirects) [Akamai reference number](/errors/cdn/akamai-reference-number) [ALB 503 Service Unavailable](/errors/cdn/alb-503) [ALB 504 Gateway Timeout](/errors/cdn/alb-504-gateway-timeout) [API Gateway 403 Forbidden](/errors/cdn/api-gateway-403-forbidden) [API Gateway 504 Gateway Timeout](/errors/cdn/api-gateway-504) [AWS 502 Bad Gateway](/errors/cdn/aws-502-bad-gateway) [AWS Amplify 404 Not Found](/errors/cdn/amplify-404) [AWS EC2: Connection timed out](/errors/cdn/aws-ec2-connection-timed-out)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
