Error: PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider ‘Nuget’

Scenario: When attempting to install the newer Exchange Online Management PowerShell tools, you receive a wall of red errors similar to the following:

PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider ‘Nuget’

PackageManagement\Get-PackageProvider : Unable to find package provider ‘NuGet’. It may not be imported yet.

Install-Module : NuGet provider is required to interact with NuGet-based repositories.


Solution: Run PowerShell as Administrator and run the following:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12


Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: