You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 16, 2021. It is now read-only.
~\Desktop>Install-Module-Name WindowsCompatibility
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'WindowsCompatibility'.TryGet-PSRepository to see all available registered module repositories.
At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9491 char:21+ ...$null=PackageManagement\Install-Package@PSBoundParameters+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
~\Desktop>Get-PSRepository
WARNING: Unable to find module repositories.
~\Desktop>$PSVersionTable
Name Value
---------
PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
~\Desktop>Find-Module WindowsCompatibility
PackageManagement\Find-Package : No match was found for the specified search criteria and module name 'WindowsCompatibility'.TryGet-PSRepository to see all available registered module repositories.
At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:8821 char:3+PackageManagement\Find-Package@PSBoundParameters| Microsoft ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...ets.FindPackage:FindPackage) [Find-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.FindPackage
Hi Steve Lee (@SteveL-MSFT) ,
After Register-PSRepository -Default still the same error.
Where is the source code of Register-PSRepository function? I want to check the source code.
~\Desktop>Register-PSRepository-Default
~\Desktop>Get-PSRepository
WARNING: Unable to find module repositories.
Chuck LU (@chucklu) this appears to be an issue with PowerShellGet. I would suggest opening an issue there to continue this discussion. Closing this issue in this repo.
Steve Lee (@SteveL-MSFT) I have checked the parameters for the Register-PSRepositor, I have a default proxy on my computer, so it could be the proxy problem.
I will open a new issue on PowerShellGet repository.
~\source\repos\GitHub\Other\PowerShellGet [development ≡]>Get-PSRepository
Name InstallationPolicy SourceLocation
------------------------------------
PSGallery Untrusted https://www.powershellgallery.com/api/v2
However, when I try to install this module , still failed
~\source\repos\GitHub\Other\PowerShellGet [development ≡]>Install-Module-Name WindowsCompatibility
WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2'.
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'WindowsCompatibility'.TryGet-PSRepository to see all available registered module repositories.
At C:\Users\clu\source\repos\GitHub\Other\PowerShellGet\PowerShellGet\public\psgetfunctions\Install-Module.ps1:169 char:21+ ...$null=PackageManagement\Install-Package@PSBoundParameters+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
After check the parameters of the Install-Module , it still need the proxy parameter.
~\source\repos\GitHub\Other\PowerShellGet [development ≡]>Install-Module-Name WindowsCompatibility -Proxy "http://domain:port"
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a
Activity
chucklu commentedon Sep 20, 2018
Aleksandar Nikolić (@alexandair)
alexandair commentedon Sep 20, 2018
Try Get-PSRepository to see all available registered module repositories.
chucklu commentedon Sep 20, 2018
Aleksandar Nikolić (@alexandair) where is the location of module repositories?
chucklu commentedon Sep 22, 2018
Steve Lee (@SteveL-MSFT) Do you know where is the module repositories?
What
Get-PSRepositoryfor? like NuGet?SteveL-MSFT commentedon Sep 24, 2018
Chuck LU (@chucklu) I don't know why you aren't showing any repositories, but you can do
Register-PSRepository -Defaultto get PowerShell gallery backchucklu commentedon Sep 25, 2018
Hi Steve Lee (@SteveL-MSFT) ,
After
Register-PSRepository -Defaultstill the same error.Where is the source code of
Register-PSRepositoryfunction? I want to check the source code.SteveL-MSFT commentedon Sep 25, 2018
Chuck LU (@chucklu) see https://github.com/PowerShell/PowerShellGet/blob/37f2a3f477213be79104695235c8b3ab5eae6e38/PowerShellGet/public/psgetfunctions/Register-PSRepository.ps1
SteveL-MSFT commentedon Sep 25, 2018
Chuck LU (@chucklu) this appears to be an issue with PowerShellGet. I would suggest opening an issue there to continue this discussion. Closing this issue in this repo.
chucklu commentedon Sep 26, 2018
Steve Lee (@SteveL-MSFT) I have checked the parameters for the Register-PSRepositor, I have a default proxy on my computer, so it could be the proxy problem.
I will open a new issue on PowerShellGet repository.
chucklu commentedon Sep 26, 2018
Hi Steve Lee (@SteveL-MSFT) , Aleksandar Nikolić (@alexandair)
I have register the ps repository successfully.
However, when I try to install this module , still failed
After check the parameters of the Install-Module , it still need the proxy parameter.
chucklu commentedon Sep 26, 2018
It works now
SteveL-MSFT commentedon Sep 26, 2018
Chuck LU (@chucklu) glad you solved it! Seems like a better error message should have been given if it can't connect to the gallery due to proxy
chucklu commentedon Sep 27, 2018
Steve Lee (@SteveL-MSFT) I have submit a new issue in https://github.com/PowerShell/PowerShellGet about using the default proxy.
NuGet works fine with my default proxy, I don't need to specify the proxy for it manually.