Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.70.0 Command Not Found utility can't find winget client powershell module #30887

Closed
Eastegg opened this issue Jan 11, 2024 · 7 comments
Closed
Labels
Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-CommandNotFound Refers to Command Not Found PowerToy

Comments

@Eastegg
Copy link

Eastegg commented Jan 11, 2024

Microsoft PowerToys version

0.70.0

Installation method

Microsoft Store

Running as admin

Yes

Area(s) with issue?

Welcome / PowerToys Tour window

Steps to reproduce

It happend after I upgrade PowerToys
image

✔️ Expected Behavior

I think the WinGet on my PowerShell is working fine. It should be find in the PowerToys.

❌ Actual Behavior

Now it ask me to install-module , and I can't download it.
image

Other Software

No response

@Eastegg Eastegg added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 11, 2024
@davidegiacometti davidegiacometti added the Product-CommandNotFound Refers to Command Not Found PowerToy label Jan 11, 2024
@jaimecbernardo
Copy link
Collaborator

@Eastegg , Does it work if you try to run the Install-Module -Name Microsoft.WinGet.Client with PowerShell running as Administrator? This might be some permission issue?

The module is needed as it's a way for having PowerShell commands to search winget packages.

/needinfo

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 11, 2024
@cyberpunk2350
Copy link

I'm having the same issue, the problem I have found is that the file WinGetCommandNotFound.psd1 does not exist in the PowerToys install directory, I can use WinGet just fine, but since that file is missing I get the error.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status-No recent activity no activity in the past 5 days when follow up's are needed label Jan 18, 2024
@Eastegg
Copy link
Author

Eastegg commented Jan 29, 2024

@Eastegg , Does it work if you try to run the Install-Module -Name Microsoft.WinGet.Client with PowerShell running as Administrator? This might be some permission issue?

The module is needed as it's a way for having PowerShell commands to search winget packages.

/needinfo

Sorry, I'm reply too late, and thank you for help.
image
image
Plesae check my screenshot, I thinks it cause by the "Source Location". I can download by edge browser, can I manually fix it by put microsoft.winget.client.1.6.3133.nupkg to somewhere ?

And I can use winget in powershell 7.4.1, but looks like powertoys wasn't found it.
image

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Status-No recent activity no activity in the past 5 days when follow up's are needed label Jan 29, 2024
@Eastegg
Copy link
Author

Eastegg commented Jan 29, 2024

I'm having the same issue, the problem I have found is that the file WinGetCommandNotFound.psd1 does not exist in the PowerToys install directory, I can use WinGet just fine, but since that file is missing I get the error.

Me too ! Thank you for the info, do you fix it ?

@tro-co
Copy link

tro-co commented Jan 31, 2024

I ran this command...

PS: Install-Module -Name Microsoft.WinGet.Client -RequiredVersion 0.2.1

fixed the issue

@Eastegg
Copy link
Author

Eastegg commented Feb 1, 2024

I ran this command...

PS: Install-Module -Name Microsoft.WinGet.Client -RequiredVersion 0.2.1

fixed the issue

Thanks for your help, but even I use "Install-Module -Name Microsoft.WinGet.Client -RequiredVersion 0.2.1" It still shows "Source Location 'https://www.powershellgallery.com/api/v2/package/Microsoft.WinGet.Client/0.2.1' is not valid."

It may have something to do with my regional network ?

@Eastegg
Copy link
Author

Eastegg commented Feb 1, 2024

Thanks eveyone for helping me, I solved it with Install module form local repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-CommandNotFound Refers to Command Not Found PowerToy
Projects
None yet
Development

No branches or pull requests

5 participants