Thursday, 12 January 2017

PowerShell "Install-Module" fails to install modules "Unable to find module providers (PowerShellGet)"

When using the new PowerShell 5.0 Install-Module command you may find that you have problems such as

PowerShellGet requires NuGet provider version '' or newer to interact with NuGet-based repositories.

Install-PackageProvider : Unable to find repository with SourceLocation ''. Please use Get-PSRepository to see all available repositories. 

This can occur when FIPS encryption is enabled on the machine, this setting can be checked by checking the local group policy settings.

System cryptography: Use FIPS 140 compliant cryptographic algorithms, including encryption, hashing and signing algorithms

No comments:

Post a Comment