Re:Post Mortem: axios NPM supply chain compromise
by mcintyre1994 on Saturday April 04, 2026 @04:24AM
(#47637074)
You’re right, but a colleague recently showed me this CLI for it: https://docs.npmjs.com/cli/v11/commands/npm-trust
Still needs to be published first, but looks like it automates all the annoying UI things you mentioned.
Before each action you need to enter your 2fa code.
I got so frustrated with npm end of last year that I wrote a whole guide covering that issue: https://npmdigest.com/guides/npm-trusted-publishing