Suggest an editImprove this articleRefine the answer for “How do you run a script by name?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)To run a script by name, you use the command **`npm run <script-name>`**. **Key point:** for a script named `start`, you can skip `run` and just use `npm start`.Shown above the full answer for quick recall.Answer (EN)ImageTo run a script by name, you use the command: ```bash npm run <script-name> ``` --- ### Example If `package.json` has: ```json "scripts": { "build": "webpack", "dev": "vite" } ``` then you can run them like this: ```bash npm run build npm run dev ``` --- ### Exception For a script named `start`, you can skip `run`: ```bash npm start ``` --- **Summary:** scripts from `package.json` are run via `npm run <script-name>`, and `npm start` is a shorthand for `start`.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.