-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for corepack enable npm
#1863
Comments
the problem with this is that it's currently a shim that automatically runs |
I really like mise's reframing of "legacy version files" to "idiomatic" version files. Where asdf's framing was focused entirely on compatibility (and wasn't forward-looking at all), the "idiomatic" framing seems to open the door to adding support for newer ecosystem idioms. Since corepack has become the Node ecosystem standard for communicating Node-specific tools via Integrating directly with the
|
It's not clear what this means practically, is it essentially just that we would run I think we could do this, however I am a bit concerned with presenting this to the user as it has a limitation with what would be possible today without significant changes. mise does support "tool options" which seems like the best place to add this metadata, these modify what happens when tools are installed, e.g.: [tools]
node = {version="20", corepack="pnpm@1"} The trouble here is this affects all installations of [tools]
node = {version="20", corepack="yarn@1"} Then yarn wouldn't necessarily be used in the case you installed the one with the pnpm config first. Of course this problem isn't limited to node, but right now we barely used this feature in mise so it hasn't been an issue but if we added corepack it would get used a lot more heavily. One solution to this would be for project tools to be installed locally to a |
Thank you for the excellent tool.
I'm not good at English, so the text might be difficult to read.
Please understand.
Background
Corepack has a feature that throws an error when a different tool than the one specified in the
packageManager
field ofpackage.json
is used. This feature does not work with Node.js installed by mise.package.json
yarn install
failed.$ corepack enable yarn $ yarn install Usage Error: This project is configured to use pnpm $ yarn ...
But,
npm install
succeeds.Other run results.
Proposal
If
npm
could be made a symbolic link, similar tonpx
, I predict thatcorepack enable npm
would become usable and the issue would be resolved.The text was updated successfully, but these errors were encountered: