Very strange. I was trying to upgrade oh-my-posh from v2 to v3, the method is documented here. However, when I run command
Update-Module -Name oh-my-posh -Scope CurrentUser
Powershell shows
Update-Module : A parameter cannot be found that matches parameter name 'Scope'.
At line:1 char:32
+ Update-Module -Name oh-my-posh -Scope CurrentUser
+ ~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Update-Module], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Update-Module
I've seen many people using this -Scope parameter very often. I don't get why my powershell can't find this parameter.
Using Windows (integrated) Powershell, $PSVersionTable:
PSVersion 5.1.19041.1023
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1023
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1