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 Corepack #181
Comments
I have a similar issue with running: |
looks like the corepack shim was added |
I'm using I can get around it by running
|
I haven't had much time recently, but will be looking into this soon. I'm going to need to dive into the documentation but it seems that on a fresh node install, one needs to So the presumption is that a) yarn and pnpm themselves are uninstalled first. If they exist, nodenv's shims will hit before getting to corepack's shims for them. but more importantly, b) yarn and pnpm would need to be uninstalled across all nodes because nodenv's shim for yarn/pnpm exist if any node has them installed globally. (This is intentional! It is those very shims that must be invoked in order to direct the command to the appropriate node based on env-var/.node-version/etc.) IOW, this might be tricky. |
Yes, nodenv installs each version separately, so personally, I think it's kind of natural that one needs to call |
That would also be how I would expect the behaviour to be. |
Node.js 16.9 including Corepack: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#2021-09-07-version-1690-current-targos
Its documentation says that I just can use
pnpm
, but I can't (withnodenv
):The text was updated successfully, but these errors were encountered: