It seems odd to me that the order is yarn, pnpm, bun, and then npm.
detect-package-manager/src/index.ts
Line 83 in 3ccb394
npm is the most common, so I'd expect telling users to do npm install
by default most of the time would be the safest option if they have multiple package managers installed. I have multiple installed because I've worked on so many different projects, but having yarn suggested to me felt super unexpected and weird. npm just seems unlikely to offend anyone since it's the standard. Alternatively, if you want to do the reverse logic and choose the least common under the assumption that people really have to be fans to install more esoteric package managers then it should be bun, pnpm, yarn, and then npm - though I think that could be a bit surprising as well. But I don't really understand why you'd tell someone with all of them installed to use yarn. Motivated by svelte-add/svelte-add#307
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too