Unable to download the list of available providers

I got the following error when Visual Studio Code started up reporting that a package installer needed updating

It tried to run the following command.

powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'

This produced the following Error.

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.
WARNING: Unable to download the list of available providers. Check your internet connection.
Package Management Update Error

After looking around it turned out to be that TLS 1.2 needed to be enabled.

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

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *