Run a script from package.json.
Section: Run, Exec, and Inspect
Run a package script
bash
bash
pnpm run buildExplanation
Run a script from package.json.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Run, Exec, and Inspect
Run script via shorthand
Run a script without typing run when there is no command ambiguity.
Execute binary in project context
Run a locally installed binary without adding it to PATH manually.
Run one-off package
Download and run a package without permanently installing it.
Explain why a package is present
Show why a package is installed in the dependency graph.