Skip to content
zero2vibecodelearn vibe coding

What npm run build does

npm run build: Run the project's build.

The npm command page covers what it does in general, with an example.

npmrunbuild
  • npm— command — install and run JavaScript packages
  • run— subcommand — run a script defined in package.json
  • build— the name of a script in package.json

What it does when you run it

$ npm run build
> build
> next build

✓ Build finished — the project is ready to ship.

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii