winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Issue with winget cli

Open hriteek opened this issue 1 year ago • 3 comments

Brief description of your issue

When trying to use the winget cli I am getting error

Program 'winget.exe' failed to run: The system cannot find the file specifiedAt line:1 char:1
+ winget --info
+ ~~~~~~~~~~~~~.
At line:1 char:1
+ winget --info
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

Steps to reproduce

Try to use the winget cli command in powershell

Expected behavior

I should be able to use winget to install packages

Actual behavior

It should install pacakge

Environment

Unable to get this info

hriteek avatar Jul 26 '25 06:07 hriteek

I tried to run the Repair-WinGetPackageManager -AllUsers to repair the installation but it failed

Repair-WinGetPackageManager : No applicable license found.
At line:1 char:1
+ Repair-WinGetPackageManager -AllUsers
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Repair-WinGetPackageManager], WinGetIntegrityException
    + FullyQualifiedErrorId : RuntimeException,Microsoft.WinGet.Client.Commands.RepairWinGetPackageManagerCmdlet

hriteek avatar Jul 26 '25 07:07 hriteek

Is this device connected to the Internet or does it have network restrictions?

denelon avatar Jul 28 '25 14:07 denelon

I can use internet fine in that device.

hriteek avatar Aug 12 '25 06:08 hriteek