Powershell Error – A parameter cannot be found that matches parameter name ‘AllowPrerelease’.

Error

PS C:\WINDOWS\system32> Install-Module -Name PowerShellGet -AllowPrerelease -Force
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:36
+ Install-Module -Name PowerShellGet -AllowPrerelease -Force
+                                    ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

Solution

Follow this document

https://www.devopsschool.com/blog/what-is-powershellget-and-how-to-install-powershellget-3-0/

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x