-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pnpm env use
doesn't provide the corepack
binary
#4029
Comments
We could probably link corepack but if corepack will override pnpm, we might have a problem. |
Yeah, I think there's an inherent conflict between corepack and pnpm's philosophy. But by ensuring |
To further resolve the conflict, (And maybe the delegation to |
It appears that both Yarn and npm ignore that field. The field is only taken into account when Yarn or npm are managed by Corepack. |
Yeah, but when |
Does this mean that if I use pnpm as node manager, I can no longer use Corepack? (or Corepack as package manager?) |
We did not solve this issue yet. So corepack doesn't work when you install Node.js with pnpm. |
Can we have this in the official docs? Preferably in the "Installation Using Corepack" section. "Note: |
Is there a way to switch I am afected by #6307 and I need to downgrade from 8 to 7 in my local machine to align with my CI pipeline 🤔 Looks to me that it would eventually become "common enough" to need to support multiple pnpm version in the same machine and a way to quickly switch between them (basically nvm for pnpm?) I am asking this in this github issue because the sources I have found online so far points out to corepack as the best way to manage diferent pnpm version, EDIT:
|
pnpm version:
6.23.0
Code to reproduce the issue:
Expected behavior:
Corepack is successfully enabled
Actual behavior:
Actually, corepack can be found at
$PNPM_HOME/nodejs/16.13.0/lib/node_modules/corepack
but no link is added at$PNPM_HOME
, thus the command is not found in$PATH
.Is this intended?
Background:
I'm setting up my new laptop and I'd like to use
pnpm
to manage my node versions, so I followed the installation guide to installpnpm
via shell script. But I needyarn
for some of my projects. The current recommended way to installyarn
is viacorepack
. That's when I found out it doesn't work in a pnpm-managed Node.js environment.Additional information:
node -v
prints: v16.13.0The text was updated successfully, but these errors were encountered: