- 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.
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.