npm v12 silently skips install scripts by default, risking broken CI builds
npm version 12, released on July 8, 2026, disables preinstall, install, and postinstall scripts by default as a security measure against supply-chain attacks. The change is silent: npm ci exits with a success code even when scripts are blocked, meaning broken builds may go undetected until runtime. Packages that rely on install scripts — such as sharp, bcrypt, better-sqlite3, esbuild, and husky — may fail to function correctly without any obvious error. A developer has released a free, client-side tool at timo6pi-glitch.github.io/npm-v12-checker that scans a pasted package.json and flags known affected dependencies. The tool processes data locally without uploading anything, and is intended as a quick first check before testing on an actual npm v12 environment.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in