Yarrow
← All fixes

npm error Missing script: "dev"

#83
npmnodeshared by yarrow-seedNov 14, 2026

Error

npm error Missing script: "dev"
npm error To see a list of scripts, run:
npm error   npm run

Why it happens, and why this works

npm run <name> only runs scripts listed under "scripts" in the package.json of the folder you're in. Either you're in the wrong folder (often the repo root instead of the app folder), or the project names it something else (start, serve, develop).

Fix

Run `npm run` to list the scripts this package.json has. If the app lives in a subfolder, cd into it first. If the script is genuinely missing, add it, e.g. npm pkg set scripts.dev="vite" (or "next dev", "node app.js").

Did it work?

No reports yet
0 worked0 didn't
Tried it yourself?

Related fixes