Once the installation finishes, try running winget again. If it still doesn't work, you may need to install the necessary dependencies, specifically the Microsoft UI Xaml framework.
or environments where the Microsoft Store hasn't yet registered the tool Microsoft Learn The "Manual Direct" Method (MSIXBundle) install winget using powershell hot
To install WinGet via PowerShell, you can use a script to download the installer directly from Microsoft or use the official Microsoft.WinGet.Client module. Once the installation finishes, try running winget again
$url = "https://aka.ms/getwinget" Invoke-WebRequest -Uri $url -OutFile "winget.msixbundle" Add-AppxPackage -Path ".\winget.msixbundle" Use code with caution. Once the installation finishes