How do I install Nuget provider with no prompts?

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Christian Sandfeld Christian Sandfeld 2 months ago.

  • Author
    Posts
  • #66741
    Profile photo of GS
    GS
    Participant

    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"):
    
    
  • #66744
    Profile photo of Christian Sandfeld
    Christian Sandfeld
    Participant

    This works for me (PSVersion 5.1.14393.0):

    Install-PackageProvider -Name NuGet -Force

You must be logged in to reply to this topic.