Oh-my-posh3: A parameter cannot be found that matches parameter name 'AllowPrerelease'.

Created on 23 Jan 2021  路  3Comments  路  Source: JanDeDobbeleer/oh-my-posh3

Prerequisites

  • [*] I have read and understand the CONTRIBUTING guide
  • [*] I looked for duplicate issues before submitting this one

Description

Hi 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.

Environment

  • Oh my Posh version:
  • Theme:
  • Operating System: Windows 10 -19042.746
  • Shell: Powershell 5.1.19041.610
  • Terminal: Windows Terminal Preview Version: 1.5.3242.0

Steps to Reproduce

Update-Module -Name oh-my-posh -AllowPrerelease -Scope CurrentUser

Most helpful comment

As @ntaken says, your toolset is outdated. Updating PowerShellGet is the way to go.

Update-Module 鈥揘ame PowerShellGet 鈥揊orce 鈥揤erbose

All 3 comments

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!
馃憣

Was this page helpful?
0 / 5 - 0 ratings