Hello, I have a windows 10 machine, and recently tried to install some packages and failed. I have seen several posts on this issue, but have not found a solution. Can someone give me a path forward? I do not use FIPS.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -Force
Install-PackageProvider : Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.
Get-PSRepository
PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).
Get-PackageProvider
Name Version DynamicOptions
NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
Get-PackageProvider -ListAvailable
Name Version DynamicOptions
NuGet 2.8.5.208 Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
Get-InstalledModule PowerShellGet
PackageManagement\Get-Package : Unable to find module providers (PowerShellGet).
Get-Module PowerShellGet
ModuleType Version Name ExportedCommandsemphasized text*
Script 1.0.0.1 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}
Get-PSRepository
PackageManagement\Get-PackageSource : Unable to find module providers (PowerShellGet).
Install-Module -Name PowerShellGet -Force
PackageManagement\Install-Package : Unable to find module providers (PowerShellGet).
Update-Module -Name PowerShellGet
Update-Module : Module 'PowerShellGet' was not installed by using Install-Module, so it cannot be updated.
Register-PSRepository -Default -Verbose
VERBOSE: PowerShell meta provider initialization failed.
VERBOSE: No match was found for the specified search criteria and provider name 'PowerShellGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system.
PackageManagement\Register-PackageSource : Unable to find module providers (PowerShellGet).
$PSVersionTable
Name Value
PSVersion 5.1.18362.752
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18362.752
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1