Run a binary from local dependencies or a temp package.
Section: Core npm CLI
Run a package binary
bash
bash
npm exec -- <command>Explanation
Run a binary from local dependencies or a temp package.
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 Core npm CLI
Initialize package.json with defaults
Create package.json using defaults.
Clean install from lockfile
Install exactly from package-lock.json for CI.