I was trying to install a powershell module, but realized that for some reason on a default installation of Powershell 7 on this laptop there is no default module provider. I would like to install the powershell gallery module provider as default.
How do i go about doing that?
Thanks
>Get-PackageProvider -ListAvailable>Install-PackageProvider -Name NuGetInstall-PackageProvider: Unable to find repository with SourceLocation ''. Use Get-PSRepository to see all available repositories.>Get-PSRepositoryGet-PackageSource: C:\Users\someuser\Documents\PowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9537Line |9537 | … ckageSources = PackageManagement\Get-PackageSource @PSBoundParameters | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Unable to find module providers (PowerShellGet).