How do I install Nuget provider with no prompts?

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Sandfeld 1 year, 3 months ago.

  • Author
  • #66741


    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',",","'.
    Are you sure you want to perform this action?
    Performing the operation "Install Package" on target "Package 'nuget' version '' from
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):
  • #66744

    Christian Sandfeld

    This works for me (PSVersion 5.1.14393.0):

    Install-PackageProvider -Name NuGet -Force

You must be logged in to reply to this topic.