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-appwas created inside a subfolder instead of moving its files to the project root.
- Prevention
- Keep
package.jsonat 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.
Was this page helpful?