{"id":535,"date":"2020-08-06T15:11:18","date_gmt":"2020-08-06T20:11:18","guid":{"rendered":"https:\/\/www.scheh.com\/?p=535"},"modified":"2020-09-23T12:08:21","modified_gmt":"2020-09-23T17:08:21","slug":"cant-install-nuget-in-powershell","status":"publish","type":"post","link":"https:\/\/www.scheh.com\/index.php\/2020\/08\/06\/cant-install-nuget-in-powershell\/","title":{"rendered":"Can&#8217;t install NuGet in Powershell"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"535\" class=\"elementor elementor-535\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a82b1e3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a82b1e3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e63724d\" data-id=\"e63724d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2e28d2c elementor-widget elementor-widget-text-editor\" data-id=\"2e28d2c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4>If you&#8217;re getting this error or similar:<\/h4><blockquote><p>WARNING: Unable to download from URI &#8216;https:\/\/go.microsoft.com\/fwlink\/?LinkID=627338&amp;clcid=0x409&#8217; to &#8221;.<br \/>WARNING: Unable to download the list of available providers. Check your internet connection.<br \/>PackageManagement\\Install-PackageProvider : No match was found for the specified search criteria for the provider &#8216;NuGet&#8217;. The package provider requires &#8216;PackageManagement&#8217; and &#8216;Provider&#8217; tags. Please check if the specified package has the tags.<br \/>At C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:7405 char:21<br \/>+ &#8230; $null = PackageManagement\\Install-PackageProvider -Name $script:N &#8230;<br \/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>+ CategoryInfo : InvalidArgument: (Microsoft.Power&#8230;PackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception<br \/>+ FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider<br \/><br \/>PackageManagement\\Import-PackageProvider : No match was found for the specified search criteria and provider name &#8216;NuGet&#8217;. Try &#8216;Get-PackageProvider -ListAvailable&#8217; to see if the provider exists on the system.<br \/>At C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:7411 char:21<br \/>+ &#8230; $null = PackageManagement\\Import-PackageProvider -Name $script:Nu &#8230;<br \/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>+ CategoryInfo : InvalidData: (NuGet:String) [Import-PackageProvider], Exception<br \/>+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.ImportPackageProvider<br \/><br \/>WARNING: Unable to download from URI &#8216;https:\/\/go.microsoft.com\/fwlink\/?LinkID=627338&amp;clcid=0x409&#8217; to &#8221;.<br \/>WARNING: Unable to download the list of available providers. Check your internet connection.<br \/>PackageManagement\\Get-PackageProvider : Unable to find package provider &#8216;NuGet&#8217;. It may not be imported yet. Try &#8216;Get-PackageProvider -ListAvailable&#8217;.<br \/>At C:\\Program Files\\WindowsPowerShell\\Modules\\PowerShellGet\\1.0.0.1\\PSModule.psm1:7415 char:30<br \/>+ &#8230; tProvider = PackageManagement\\Get-PackageProvider -Name $script:NuGet &#8230;<br \/>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br \/>+ CategoryInfo : ObjectNotFound: (Microsoft.Power&#8230;PackageProvider:GetPackageProvider) [Get-PackageProvider], Exception<br \/>+ FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetPackageProvider<\/p><\/blockquote><h4>Paste and run this in Powershell as Administrator.<\/h4><pre>[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12<\/pre>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re getting this error or similar: WARNING: Unable to download from URI &#8216;https:\/\/go.microsoft.com\/fwlink\/?LinkID=627338&amp;clcid=0x409&#8217; to &#8221;. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagementInstall-PackageProvider : No match was found for the specified search criteria for the provider &#8216;NuGet&#8217;. The package provider requires &#8216;PackageManagement&#8217; and &#8216;Provider&#8217; tags. Please check if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3eyIP-8D","_links":{"self":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":0,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}