back

by stagas·4y ago·view on hn ↗
You can mitigate against those kinds of attacks using npm's `--before` option:

     npm i --before=`date -I -d '-5 days'`
It will only install packages released before the specified date.
1 comments
This exposes another threat vector, you would no longer receive patches for discovered as soon as they are available.