npm scripts
Updated 2026-02-09
Common npm script commands and package.json lifecycle scripts. Run, build, test, and lint from the CLI.
Lifecycle
npm run startUsually runs app (e.g. next start).
npm run buildProduction build.
npm run devDevelopment server.
npm testRun tests (or npm run test).
npm run lintLint code.
Common scripts
npm installInstall dependencies.
npm ciClean install from lockfile.
npm run cleanOften removes build/output (project-specific).
npm run typecheckTypeScript check (if defined).