Author Posts

March 18, 2017 at 7:50 pm

I can not somehow successfully force installation Nuget Provider, it always prompts me for confirmation

PS C:\WINDOWS\system32> Install-PackageProvider -Name nuget -Confirm:$false -Verbose -ForceBootstrap
VERBOSE: Using the provider 'Bootstrap' for searching packages.
VERBOSE: Finding the package 'Bootstrap::FindPackage' 'nuget',",","'.

Confirm
Are you sure you want to perform this action?
Performing the operation "Install Package" on target "Package 'nuget' version '2.8.5.208' from
'https://oneget.org/nuget-2.8.5.208.package.swidtag'.".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):

March 19, 2017 at 3:14 pm

This works for me (PSVersion 5.1.14393.0):

Install-PackageProvider -Name NuGet -Force