npm v12 disables automatic installation scripts
The upcoming npm v12 release in July 2026 will disable automatic installation scripts, Git dependencies, and remote tarball URLs by default to secure the JavaScript supply chain. Developers must explicitly whitelist trusted dependency scripts using a new approve-scripts command that saves an allowlist to package.json.
While disabling implicit code execution during package installation is a massive step forward for supply chain security, this shift will cause widespread friction and build failures.
* Restricting dependency scripts by default will break a huge number of popular packages that rely on native compilation, shifting the burden of trust auditing to individual developers.
* The strict Git and remote URL restrictions will force changes in enterprise CI/CD environments and private dependency management workflows.
* There is a high risk of approval fatigue, where developers simply run `npm approve-scripts` to bypass warnings and unblock their workflow without actually auditing the dependencies.
DISCOVERED
52d ago
2026-06-10
PUBLISHED
52d ago
2026-06-09
RELEVANCE
AUTHOR
plasma