It sounds like you’re encountering an issue with installing the NuGet provider for PowerShell. Here are the steps to resolve this:
- Open PowerShell as Administrator:
- Right-click on the PowerShell icon and select “Run as Administrator”.
- Set the Security Protocol:
- Run the following command to ensure PowerShell uses TLS 1.2:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- Run the following command to ensure PowerShell uses TLS 1.2:
- Install the NuGet Provider:
- Run this command to install the NuGet provider:
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
- Run this command to install the NuGet provider:
These steps should help you get the required NuGet provider installed.