When I run for example the following command:
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
I get the following error:
PackageManagement\Set-PackageSource : The variable ‘$LocalizedData’ cannot be retrieved because it has not been set.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSGet.psm1:1673 char:17
- … $null = PackageManagement\Set-PackageSource @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (LocalizedData:String) [Set-PackageSource], Exception
- FullyQualifiedErrorId : VariableIsUndefined,Microsoft.PowerShell.PackageManagement.Cmdlets.SetPackageSource
Any ideas? I have to admit that I’m a Powershell newby.