-
Notifications
You must be signed in to change notification settings - Fork 137
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 pnpm #198
Comments
Sounds like that would be the job for a separate tool, no? Something like |
What's the request here? The referenced installation page says pnmp can be installed even without node so it doesn't sound like nodenv needs to do anything to "support pnmp". It can also be installed via homebrew (also not affected by nodenv). Or it can be installed via npm globally, which would (with nodenv) mean it's installed within the chosen node version. Sounds like there's nothing to do here? |
Given that it can be installed in multiple ways, yes, a separate tool like The request here is:
|
A wholly new tool is outside the scope of this project, though I'd still like to further understand the end goal. I think I'd have to understand how pnpm operates to fully grasp what role nodenv could play. (Does pnpn maintain state outside its installation directory? If it does, (eg to share packages, etc) then you'd have those packages shared across node versions which may not work.) Digging more, would you expect the version of pnpm to change in concert with a particular node? That is, in any given project, I assume you would want a single node and a single pnpm version to be active, yes? I'm assuming that having pnpm installed outside of node and allowing it to share state across node versions would be problematic? ie, "in this project, we want node 14 and pnpm 6; in another project we want node 16 and pnpm 7" ? What's the use case for wanting different versions of pnpm? Are there reasons one can't/shouldn't keep up on the latest pnpm? Potential approach: Example, using contrived version numbers:
Doing that will give you two nodes, with different versions of pnpm (installed as global modules within their respective nodes). Renaming them allows you to select |
It's 2024, and now we can just use corepack for this, right? |
Support pnpm installation, since it can work independently from Node.js version.
https://pnpm.io/installation
The text was updated successfully, but these errors were encountered: