CONTRIBUTING guideHi there!
I'm trying to upgrade from v2 with
Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser
but have an error:
Update-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:32
+ Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Update-Module], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Update-Module
(Get-Command -Name Install-Module).Parameters.Keys doesn't show me AllowPrerelease in the list.
Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser
Try update your PackageManagement and PowerShellGet modules first.
As @ntaken says, your toolset is outdated. Updating PowerShellGet is the way to go.
Update-Module 鈥揘ame PowerShellGet 鈥揊orce 鈥揤erbose
Thanks, for answer. This worked for me!
馃憣
Most helpful comment
As @ntaken says, your toolset is outdated. Updating PowerShellGet is the way to go.