- August 8, 2022
- Posted by: Surender Kumar
- Categories: Windows 10, Windows 11
Winget does not work in Windows
Windows package manager (or winget) is a latest package manager for Windows (just like
dnf in Linux) that only works in the modern version of Windows 10 1809 (build 17763) or Windows 11. To use winget, make sure you install it using Microsoft Store app. Just open Run dialog and type
"ms-windows-store:" without quotes and press Enter. Search for
"App Installer" without quotes and make sure it is installed.
If you still get The term ‘winget’ is not recognized as the name of a cmdlet, function, script file, or operable program error as shown in the screenshot, see Fixing the Winget Error section to resolve it.
Fixing the Winget Error
If you’re getting the error as shown in the screenshot, follow these steps:
- Make sure you have installed the
wingetpackage on your system.
- Open Run dialog and type
sysdm.cpl ,3and press Enter. This will open Advanced System Properties.
- Now click on Environment Variables button.
- Under User Variables section, double click Path variable to edit it.
- Now click New button and paste the following line and click OK.
- Click OK once again. Now close the current PowerShell console or command prompt and try running
wingetagain. It should now work without any error.
Thank you and excellent article. The fix worked but why did this happen? I never made any changes that I thought would disable winget.
Thank you for the article and helpful trick
Didn’t work for me. I still get the “‘winget’ is not recognized” error. 🙁
This is stupid Microsoft! Why isn’t this installed as part of windows?