Suggest an editImprove this articleRefine the answer for “What does npm run do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`npm run`** runs a script described in the `"scripts"` section of `package.json`. It is a convenient way to run commands through npm without typing them directly into the terminal every time. **Key point:** for a script named `start`, `npm start` alone is enough, it works the same as `npm run start`.Shown above the full answer for quick recall.Answer (EN)Image`npm run` runs a script described in the `"scripts"` section of `package.json`. It is a convenient way to run commands through npm without typing them directly into the terminal every time. --- ### Example in `package.json` ```json { "scripts": { "start": "node index.js", "build": "webpack", "dev": "vite" } } ``` ### How to run them ```bash npm run start npm run build npm run dev ``` --- ### What happens - npm looks up the command in `"scripts"` - runs the given line in the command shell - adds local binaries from `node_modules/.bin` to PATH (for example, `webpack`, `vite`, `eslint`, etc.) --- ### A shortcut For a script named `start`, it's enough to just run: ```bash npm start ``` This works the same as `npm run start`. --- ### Summary `npm run` executes the commands defined in `package.json` and lets you run project tools (webpack, vite, nodemon, tests, linters, and so on) in a uniform way.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.