Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to install the default module provider for Powershell 7?

$
0
0

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).

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>