3

I am running into this problem when I try to execute 'winget' in power shell.

❯ winget
winget: The term 'winget' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I am running Windows 11 with the latest update.

And when I go to 'App Installer' in Window Store. It said I already have 'App Installer' installed.

Can you please tell me how can I fix this issue?

ᄂ ᄀ
  • 4,187

1 Answers1

0

One possible fix is to add winget directory path into Windows environment variable called Path.

You can find the path using Powershell:

(Get-ChildItem -Path $env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller*_x64*\winget.exe).DirectoryName
Saul
  • 437