AdhocAdam / LifxLAN

PowerShell module for controlling Lifx devices over LAN
https://www.powershellgallery.com/packages/LifxLAN/
MIT License
2 stars 0 forks source link

no lifxlan in repo... #9

Open ascidro opened 2 years ago

ascidro commented 2 years ago

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

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

ascidro commented 2 years ago

and i used power shell as admin

AdhocAdam commented 2 years ago

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.