
npm 12 blocks install scripts by default, but the install still exits 0: a strict CI gate for dependencies your agent adds
The new allowScripts policy turns a dependency's postinstall into something a human has to approve. Real output from npm 12.2.3, the one flag that makes it fail CI, and a 15-line check for approvals that sneak into a diff.
9 min read

