I get an error when I try to install with winget.

Asked 2 years ago, Updated 2 years ago, 473 views

I tried to install it with 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.

It comes out like this.Thank you for your cooperation.

Screenshot

windows

2022-10-24 00:01

1 Answers

In the Start Menu Settings → Application → App Run Alias setting screen, winget.exe (Windows Package Manager Client) along with python.exe, python3.exe is also turned off.
Change the setting to on and then try starting PowerShell.

This is a question article about python related configuration, but the screenshot of the question also shows winget.exe.
What are the app execution aliases "pytnon.exe" and "python3.exe"?

Regarding the issue resolved in the comments:

It should have been built in by default as shown below, but

Use the winget tool to install and manage applications

By default, the winget command-line tool in Windows Package Manager is bundled with Windows 11 and the latest version of Windows 10 as the application installer.

The settings may have been changed by doing some additional work like the following.
Install the winget preview version [Developers Only]


2022-10-24 00:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.