NPM 11.10.0 adds `min-release-age`
You can now specify a minimum age for installing package versions in NPM. This is a concept known as dependency cooldowns that has gained popularity with the rise in supply chain attacks. You need to be running at least v11.10.0 of npm but then you can add the following to your .npmrc file: min-release-age=7 or set it globally with: npm config set min-release-age=7 Now NPM won’t install any package version that was released less than 7 days ago. ...