Vercel build logs

npm error Missing script: "build" — Error: Command "npm run build" exited with 1

What it means
Vercel tried to build your site, but the repo's root folder doesn't have a Next.js `package.json` with a `build` script.
Likely causes
  • The repo was imported into Vercel before the Next.js app skeleton was pushed.
  • create-next-app was created inside a subfolder instead of moving its files to the project root.
Prevention
Keep package.json at the root of your project folder (Development/<project-name>/package.json).

Copy for your agent

Vercel says `Missing script: "build"`. Check that `package.json` with the Next.js scripts is at the root of the repo, commit and push.

Full help articleThe Vercel build failed

Last reviewed Nov 8, 2026