pnpm icon indicating copy to clipboard operation
pnpm copied to clipboard

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

Open gotounix opened this issue 1 month ago • 3 comments

Verify latest release

  • [X] 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
  • [X] Windows
  • [ ] Linux

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

No response

gotounix avatar May 13 '24 08:05 gotounix