npm ci --ignore-scripts

Category: Node.js & npm/yarn

npm ci --ignore-scripts

Clean install without running lifecycle scripts

Deletes node_modules and reinstalls from package-lock.json while skipping the postinstall and prepare scripts that packages declare. Lifecycle scripts can compile native code or download binaries, so skipping them yields a faster, safer CI build. npm ci requires a lockfile to exist.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.