And is there any way to override this behavior?
Current transparent commands and associated versions:
npm init 8.19.2
npx 8.19.2
pnpm init 7.12.2
pnpx 7.12.2
pnpm dlx 7.12.2
yarn dlx 3.2.3
I would have guessed that e.g. updating yarn to 3.2.4 using corepack prepare yarn@3.2.4 --activate (or corepack prepare yarn@stable --activate) would result in yarn dlx using yarn 3.2.4, so I was a bit surprised to hear that this is not the case.
Edit: Work around, as per Corepack docs:
corepack yarn@3.2.4 dlx create-astro
And is there any way to override this behavior?
Current
transparentcommands and associated versions:npm init8.19.2npx8.19.2pnpm init7.12.2pnpx7.12.2pnpm dlx7.12.2yarn dlx3.2.3I would have guessed that e.g. updating
yarnto3.2.4usingcorepack prepare yarn@3.2.4 --activate(orcorepack prepare yarn@stable --activate) would result inyarn dlxusingyarn3.2.4, so I was a bit surprised to hear that this is not the case.Edit: Work around, as per Corepack docs: