What does npm v12 actually change by default?
npm v12 turns off three defaults that have existed since npm's early days: automatic install/postinstall scripts (allowScripts now defaults to off), Git dependencies, and sourcing packages from remote URLs. Developers must explicitly allowlist any of the three in package.json if their project genuinely needs them.
Answered in
npm's Biggest Security Overhaul in 16 Years Is Here — Attackers Are Already Adaptingnpm v12 blocks install scripts, Git dependencies, and remote sources by default. Researchers say attackers are already routing around it.
Read the full analysisOther questions this article answers
More development best practices questions
- What did OpenAI’s Habitat team change?
- Does the reported 12× read improvement mean another team should copy the design?
- Does the Python Typing Survey measure all Python developers?
- Do Python type hints enforce types at runtime?
- What is interactive refactoring in gopls?
- Is interactive refactoring already part of the official LSP standard?
- What does Meta mean by human-on-the-loop software engineering?
- Does Meta's Forum project prove that AI can replace a software team?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the Development Best Practices beat.