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

winget upgrade pnpm will remove the PATH FROM user env path, and won't added the new PATH to user env path again. #8077

Open
2 of 4 tasks
gotounix opened this issue May 13, 2024 · 1 comment

Comments

@gotounix
Copy link

Verify latest release

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

pnpm version

any version

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

No response

Reproduction steps

winget upgrade pnpm.pnpm

Describe the Bug

While using winget upgrade pnpm to upgrade pnpm, the newest version will install successful, but it will remove the PATH FROM user env path, and won't added the new PATH to user env path again.
So the pnpm command will not find.

Expected Behavior

Added the new PATH to user env path.

Which Node.js version are you using?

any

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

@josh-hemphill
Copy link

josh-hemphill commented May 14, 2024

I had come to report this same issue. Winget works great to keep my pnpm exe updated since winget comes pre-installed on windows now (I keep the rest of the installation elsewhere and just delete the old exe from there so it doesn't take precedence in the PATH), except for this issue; I have to uninstall and reinstall to get the path for the exe added back.

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

No branches or pull requests

2 participants