Do not install a package published this week
Poisoned versions were on the registry for hours to a couple of days before being pulled. A minimum age means your lockfile never points at one.
# .npmrc (pnpm)
minimum-release-age=4320Three days costs nothing on stable packages. Override per package the day you need a security fix faster.
securitynpm
Longer version: the post this came from.