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

no lifxlan in repo... #9

Open
ascidro opened this issue Jul 31, 2022 · 2 comments
Open

no lifxlan in repo... #9

ascidro opened this issue Jul 31, 2022 · 2 comments
Assignees

Comments

@ascidro
Copy link

ascidro commented Jul 31, 2022

PS C:\WINDOWS\system32> Install-Module -Name LifxLAN
PackageManagement\Install-Package : Für die angegebenen Suchkriterien und den Paketnamen "LifxLAN" wurde keine
Übereinstimmung gefunden. Verwenden Sie Get-PSRepository, um alle verfügbaren, registrierten Paketquellen anzuzeigen.
In C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 Zeichen:21

  • ... $null = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
      ception
    • FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\WINDOWS\system32>

PS C:\WINDOWS\system32> Install-Module -Name LifxLAN -AllowPrerelease
Install-Module : Es wurde kein Parameter gefunden, der dem Parameternamen "AllowPrerelease" entspricht.
In Zeile:1 Zeichen:30

  • Install-Module -Name LifxLAN -AllowPrerelease
  •                          ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Install-Module
@ascidro
Copy link
Author

ascidro commented Jul 31, 2022

and i used power shell as admin

@AdhocAdam
Copy link
Owner

AdhocAdam commented Aug 1, 2022

I'm pretty sure this is an issue that Windows PowerShell (emphasis on Windows PowerShell aka 5.1) exposes as the PowerShellGet module was updated in PowerShell 6.0, and then subsequently updated in v7. The full explanation is over here on Microsoft Docs "Installing PowerShellGet on Windows"

The short of it is that in order to use the "AllowPrerelease" switch, you need to force update your PowerShellGet module. Once you do this, you should be able to install any module (and in turn any edition of a module) you want from the PowerShell Gallery.

@AdhocAdam AdhocAdam self-assigned this Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants