npm Scripts & Workspaces/Run a binary from a package

Run a local binary inside the project context.

Section: Execution helpers

Run a binary from a package

bash
bash
npm exec eslint .
Explanation

Run a local binary inside the project context.

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 Execution helpers
Run a package temporarily
Download a package temporarily and run its binary.
OpenIn sheetbashsame section
Run a create-* initializer
Use create-* scaffolding through npm.
OpenIn sheetbashsame section
Run a named script
Run a package.json script.
OpenIn sheetbash1 tag match
Create a new workspace
Create a workspace and update the root workspaces list.
OpenIn sheetbash1 tag match
Run scripts in foreground
Surface script output directly in the terminal.
OpenIn sheetbash1 tag match
Run a script quietly
Reduce npm log noise when running scripts.
OpenIn sheetbash1 tag match