A Corepack by Any Other Name

How many HTTP requests do you think Corepack makes when you run corepack use pnpm to use the latest version of pnpm in your project? Wrong — it’s both one and two. Two, in the sense that it makes two requests; one, because these two requests are completely identical . I came across this little idiosyncrasy while working on Moldau , a version manager for Node.js package managers that is part of my…