Skip to content

-AllowPrerelease not available in vanilla powershell 5.1's Install-Module #1423

@scottnm

Description

@scottnm

The docs for upgrading with powershell 5.1 say...

If you are using the version of PSReadLine that ships with Windows PowerShell, you need to run: powershell -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease.

this didn't work for me.

I kept getting the error Install-Module : A parameter cannot be found that matches parameter name AllowPrerelease.

turns out the default install of powershell on my work machine had an outdated version of PowershellGet

the fix I followed to update was detailed here https://evotec.xyz/install-module-a-parameter-cannot-be-found-that-matches-parameter-name-allowprerelease/

namely I needed to update PowershellGet first with Install-Module PowershellGet -Force and then restart my shell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-DocsIt's a documentation issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions