One of the biggest problems I have today with Corepack is the Usage Error: This project is configured to use <pkgmgr>.
This happens when I run npm i -g vercel@latest in a project that is configured to use yarn or pnpm. This seems a little too strict because the global flag (-g) is not scoped to my current project.
Similarly, vercel dev will shell out to npm or npx and corepack being enabled could block it from working properly, even if the system has npm installed.
While I think the intention is good (catch accidental typos), I think this shouldn't be the default behavior because it is too restrictive. Perhaps making this strict mode be opt-in would help Corepack go stable (see #104).
One of the biggest problems I have today with Corepack is the
Usage Error: This project is configured to use <pkgmgr>.This happens when I run
npm i -g vercel@latestin a project that is configured to use yarn or pnpm. This seems a little too strict because the global flag (-g) is not scoped to my current project.Similarly,
vercel devwill shell out tonpmornpxand corepack being enabled could block it from working properly, even if the system hasnpminstalled.While I think the intention is good (catch accidental typos), I think this shouldn't be the default behavior because it is too restrictive. Perhaps making this strict mode be opt-in would help Corepack go stable (see #104).