pnpm install --ignore-scripts

Category: Node.js & npm/yarn

pnpm install --ignore-scripts

Install without running lifecycle scripts

Prevents postinstall and prepare scripts from executing during install, which both speeds up installs and avoids running arbitrary package code. Some native modules need their scripts, so reinstall without the flag if a build breaks. pnpm 10 blocks unknown scripts by default anyway.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.