npm run dev

Definition

npm run dev is a terminal command that runs the project's development script from package.json. In many web projects, it starts a local development server so you can view and test the project in the browser while you work.

Why beginners see it

Beginners often see npm run dev early because it is part of the normal local development workflow. It is the command that helps you open the project on your own machine before anything is deployed.

Example in VCA

At Vibe Code Academy, students often run npm run dev after npm install so they can open the localhost address shown in the terminal and check their work as they build.

Full explanation

For a full beginner explanation, examples and troubleshooting, read the guide to npm run dev.

Related terms