jueves, 21 de abril de 2022

Problema instalando el módulo nuget


Install-Module -name powershellget -Force


Install-PackageProvider -Name NuGet -MinimumVersion -Force


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.

Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 

'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.

At line:1 char:1

+ Install-PackageProvider -Name NuGet -MinimumVersion -Force

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception

    + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider


Lanzar en powershell: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Problar luego a lanzar los mismos comandos.