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

pnpm doesn't respect use-node-version setting for pnpm install when using pnpm workspace #6981

Closed
2 of 4 tasks
antitoxic opened this issue Aug 23, 2023 · 2 comments · Fixed by #7092
Closed
2 of 4 tasks

Comments

@antitoxic
Copy link

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.6.12

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

https://github.com/antitoxic/pnpm-workspace-use-node-version-bug

Reproduction steps

  1. Run:
    pnpm env use --global 18.15.0
    pnpm env use --global 16.19.1
  2. Now your current node version globally should be 16.19.1 but you should have 18.15.0 installed as well.
  3. Check out https://github.com/antitoxic/pnpm-workspace-use-node-version-bug and just run pnpm install

Describe the Bug

As the title says, it seems like after using pnpm workspace, pnpm install no longer respects theuse-node-version setting.

The same .npmrc config works fine when NOT using pnpm workspace.

Expected Behavior

I expect running pnpm install within a pnpm workspace to respect the use-node-version and automatically use the already available node version specified by use-node-version

Which Node.js version are you using?

18.15.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

@KSXGitHub
Copy link
Contributor

Since you didn't describe the "Actual behavior", I have to ask you: Is this the same behavior you observed?

screenshot

@antitoxic
Copy link
Author

Hi @KSXGitHub , yes this is the error I'm getting.

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

Successfully merging a pull request may close this issue.

2 participants