cd /news/developer-tools/missing-script-build-npm-err-when-th… · home › topics › developer-tools › article
[ARTICLE · art-174116] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Missing script: build (npm ERR! when the host builds your app)

Axonscape's Launchpad team published guidance on fixing the npm 'Missing script: "build"' error that halts deployments when a package.json lacks a build script, recommending framework-specific entries such as "next build" for Next.js, "vite build" for Vite, and "tsc" for TypeScript servers. The team also offers a free launch check that scans a public GitHub repo or code zip for this and other pre-launch failures without retaining data.

recommendation

Add a framework-specific build script to package.json and run npm run build locally, fixing reported errors before redeploying.

more in playbook: Running AI in production
by read1 min views2 publishedNov 22, 2026

The deploy stops at once with npm's 'Missing script: "build"' when package.json doesn't say how to build the app. One line in package.json fixes it.

The host's build log ends with npm ERR! Missing script: "build", or the host deploys an empty or unbuilt app.

Hosts run npm run build (or the same with pnpm, yarn or bun). Apps exported from AI tools, or started from a bare template, sometimes have only a dev script, or none.

scripts in package.json: "build": "next build" for Next.js, "build": "vite build" for Vite, "build": "tsc" for a TypeScript server.npm run build on your computer and fix anything it reports before you deploy again.index.html. Paste this into Lovable, Bolt, v0, Replit or Cursor:

Add a build script to package.json that builds this app for production with its framework's own command, run it, and fix any errors it reports.

The full page, with the request ready to copy, is at launchpad.axonscape.com/fix/missing-build-script. I work on Launchpad by Axonscape, which runs a free launch check for apps built with AI tools: it finds this and the other things that break at launch, from a public GitHub repo or a .zip of the code, and keeps nothing.

── more in #developer-tools 4 stories · sorted by recency
── more on @axonscape 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/missing-script-build…] indexed:0 read:1min 2026-11-22 · —