npm run Explained

What npm run does, with an example.

Published November 10, 2026

npm run executes a custom script defined in the "scripts" section of package.json.

Key points

  • Part of the standard npm CLI that ships with Node.js

Example

npm run build
More JavaScript articles