npm Scripts & Workspaces/Disable lifecycle scripts

Turn off lifecycle scripts globally or locally.

Section: Lifecycle patterns

Disable lifecycle scripts

bash
bash
npm config set ignore-scripts true
Explanation

Turn off lifecycle scripts globally or locally.

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 Lifecycle patterns
Run scripts in foreground
Surface script output directly in the terminal.
OpenIn sheetbashsame section
Run script only if it exists
Avoid failing when a script is missing.
OpenIn sheetbashsame section
Run a named script
Run a package.json script.
OpenIn sheetbash2 tag match
Run a script quietly
Reduce npm log noise when running scripts.
OpenIn sheetbash2 tag match
Pass args to a script
Pass additional arguments after `--`.
OpenIn sheetbash2 tag match
Run script in all workspaces
Run a script in all workspaces.
OpenIn sheetbash2 tag match