Skip to content
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

[Bug Report] pnpm find false version with volta #1480

Open
Deuscx opened this issue Apr 2, 2023 · 2 comments
Open

[Bug Report] pnpm find false version with volta #1480

Deuscx opened this issue Apr 2, 2023 · 2 comments

Comments

@Deuscx
Copy link

Deuscx commented Apr 2, 2023

when i use pnpm, it's said the node version is 14. but when i use node -v command, it shows the version is 16

image

Enviroment

platform: windows11
volta version: 1.1.1

@capndave
Copy link

capndave commented Apr 15, 2023

@Deuscx try some of the suggestions here

@charlespierce
Copy link
Contributor

Hi @Deuscx, thanks for reporting and sorry for the delay in responding! I believe what you're seeing is Volta's pinning of Node versions for package binaries. At the moment, proper pnpm support with a global and local version is experimental, and needs to be enabled via an environment variable: https://docs.volta.sh/advanced/pnpm

Prior to the experimental support being added (and still while it's not enabled), pnpm was treated like any other global package, rather than special-cased as a package manager the way we handle yarn and npm. We're looking into the remaining pieces needed to enable pnpm fully, at which point it should work much better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants