node
config_error
ai_generated
true
npm error Missing script: "start"
ID: node/err-missing-script
95%Fix Rate
95%Confidence
50Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 20 | active | — | — | — |
Root Cause
npm run <script> but that script doesn't exist in package.json.
genericWorkarounds
-
95% success Add the script to package.json scripts section
{ "scripts": { "start": "node index.js" } } -
92% success Check available scripts: npm run (no arguments lists all scripts)
npm run (no arguments lists all scripts)
Sources: https://docs.npmjs.com/cli/v10/commands/npm-run-script
-
88% success For frameworks, use the right command: next dev, vite, react-scripts start
next dev, vite, react-scripts start
Dead Ends
Common approaches that don't work:
-
Create a generic start script that might not work
70% fail
The script should match your actual entry point
-
Use npx instead of npm run
75% fail
npx is for running packages, not project scripts
Error Chain
Frequently confused with: