Skip to content

pnpm missing from path after updating #3616

@sharunkumar

Description

@sharunkumar

Brief description of your issue

Updating pnpm when there is a new version available, removes pnpm from the PATH, so its no longer usable after the update, until the PC is restarted

Steps to reproduce

Install pnpm using winget
after a new version is available, update pnpm using winget

Expected behavior

pnpm.exe should be available in PATH

Actual behavior

➜ winget list pnpm
Name Id        Version Source
------------------------------
pnpm pnpm.pnpm 8.7.5   winget
➜ where.exe pnpm
INFO: Could not find files for the given pattern(s).

Environment

Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2215
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-PathIssue related to path environment variableIn-PRIssue related to a PRIssue-BugIt either shouldn't be doing this or needs an investigation.PortableIssue related to portable package

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions