npm publish --ignore-scripts

Category: Node.js & npm/yarn

npm publish --ignore-scripts

Publish without running lifecycle scripts

Uploads the package while skipping the prepublishOnly, prepack, and postpack scripts that normally run before publish. Useful when build steps already ran or when scripts fail in an unusual environment. Publishing is irreversible, so prefer npm publish --dry-run to rehearse.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.