npm's Defaults Are Bad

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

npm's default settings are a root cause of JavaScript's recurring supply chain security problems. Key issues include: npm install silently rewriting lockfiles (npm ci is safer but obscure), postinstall scripts running by default for all packages (pnpm v10 and Bun block these by default), trusted publishing being reversible

6m read timeFrom nesbitt.io
Post cover image
Table of contents
npm install rewrites your lockfile #Lifecycle scripts run by default #Trusted publishing can be turned off #Cooldowns aren’t on by default #npx has no safety net at all #GitHub Actions as an enabler #npm is the one that matters #
1 Comment

Sort: