Skip to content

The term 'winget' is not recognized

winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program.

In Command Prompt the same problem reads 'winget' is not recognized as an internal or external command, operable program or batch file. It means your shell cannot find winget.exe.

Winget comes inside a Microsoft Store component called App Installer. The command winget is an alias that App Installer adds to a folder in your PATH. If any part is missing, the shell says the term is not recognized.

Microsoft’s troubleshooting page lists these common reasons:

  1. The App Installer is too old or does not contain the Windows Package Manager. Its version should be greater than 1.11.11451.
  2. The App execution alias for winget is turned off.
  3. The App Installer did not add its folder to PATH. The folder is %userprofile%\AppData\Local\Microsoft\WindowsApps.
  4. App Installer was installed for a different Windows user account.
  5. The App Installer package is in a broken state.

It can also be a new account: winget is not available until you have signed in once as that user.

Devpit does not install winget. Update Everything looks for winget, Scoop, npm and Chocolatey on your PATH, and only uses the ones it finds. If none is found, it says so: no package manager was found, so there is nothing to update. Install Developer Apps installs through Scoop, winget or Chocolatey in the same way.

Try these in order.

  1. Check that App Installer exists and see its version (PowerShell):
Terminal window
Get-AppxPackage microsoft.desktopappinstaller
  1. Turn the alias on: open Windows Settings, search for App execution aliases, and turn on the entry for the Windows Package Manager (winget).
  2. Test the full path. If this works but plain winget does not, your PATH is missing the folder:
Terminal window
& "$env:LOCALAPPDATA\Microsoft\WindowsApps\winget"

Add %userprofile%\AppData\Local\Microsoft\WindowsApps to your user PATH and open a new terminal.

  1. If you just signed in to a new account, ask Windows to register winget:
Terminal window
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
  1. If App Installer is missing, get it from the Microsoft Store (search for App Installer).
  2. If the package is broken, on Windows 11 reset it:
Terminal window
Get-AppxPackage Microsoft.DesktopAppInstaller | Reset-AppxPackage

Then check with winget --info.

Common questions

Which Windows versions have winget?

Microsoft says winget is available on Windows 11, modern versions of Windows 10 and Windows Server 2025, as part of the App Installer. It is only supported on Windows 10 version 1809 (build 17763) or later.

I just created a new Windows user and winget is missing. Why?

Microsoft says winget is not available until you have logged into Windows as a user for the first time, because the Microsoft Store registers it in the background. You can request the registration from PowerShell with Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.

Do I need winget to use Devpit?

No. Devpit works with the package managers it finds: winget, Scoop, Chocolatey and npm. If winget is missing it is simply not used.