none
NuGet not install package RRS feed

  • Question

  • Hello all

    Import-Module PackageManagement


    Install-PackageProvider NuGet –force –verbose

    Now want see all packge by NuGet

    Find-Package -Provider NuGet

    but no one at all =(

    ok go verify all settings

    get-packageprovider NuGet

    Name                     Version          DynamicOptions                                                                             
    ----                     -------          --------------                                                                             
    NuGet                    2.8.5.207        Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, Al...

    get-packagesource


    Name                             ProviderName     IsTrusted  Location                                                                
    ----                             ------------     ---------  --------                                                                
    chocolatey                       Chocolatey       False      http://chocolatey.org/api/v2/                                           
    PSGallery                        PowerShellGet    False      https://www.powershellgallery.com/api/v2/                               

    No one repository persist for NuGet

    No problem configure manual

    Register-PSRepository -Name "nuget.org" –SourceLocation "https://www.nuget.org/api/v2/" -InstallationPolicy Trusted -PackageManagementProvider NuGet


    First problem provider NO NUGET

    Name                             ProviderName     IsTrusted  Location                                                                
    ----                             ------------     ---------  --------                                                                
    chocolatey                       Chocolatey       False      http://chocolatey.org/api/v2/                                           
    PSGallery                        PowerShellGet    False      https://www.powershellgallery.com/api/v2/                               
    nuget.org                        PowerShellGet    True       https://www.nuget.org/api/v2/  

    Try install

    Find-Package notepad2

    Name                           Version          Source           Summary                                                             
    ----                           -------          ------           -------                                                             
    notepad2                       4.2.25.20160422  chocolatey       A fast and light-weight Notepad-like text editor with syntax high...
    notepad2                       4.2.25.3         nuget.org        A fast and light-weight Notepad-like text editor with syntax high...

    install-Package  notepad2 -Source https://wPowerShellGetww.nuget.org/api/v2/ -provider 

     C:\Windows\system32> install-Package  notepad2 -Source https://www.nuget.org/api/v2/ -provider PowerShellGet

    PS C:\Windows\system32> 

    NOTHING %(

    no error or warning, siletly end and no install package at all

    Get-Package -ProviderName NuGet

    No package install...

    if i install throught choco all fine.. but NuGet not work

    where i have mistake?

    • Moved by Bill_Stewart Friday, December 30, 2016 8:04 PM Question too vague/off-topic
    Friday, October 28, 2016 7:11 PM

All replies

  • Friday, October 28, 2016 7:34 PM
  • Find-Package -Source https://go.microsoft.com/fwlink/?LinkID=206669

    Find-Package notepad2 -Source https://go.microsoft.com/fwlink/?LinkID=206669


    \_(ツ)_/

    Thanks you

    Register-PSRepository -Name "jrv" –SourceLocation "https://go.microsoft.com/fwlink/?LinkID=20666" -InstallationPolicy Trusted
    install-Package  Microsoft.ReportViewer.2015


    for you this work?

    in my case again not install package


    PS C:\Windows\system32> Get-Package -ProviderName PowerShellGet

    Name                           Version          Source                           ProviderName                                        
    ----                           -------          ------                           ------------                                        
    PackageManagement              1.1.0.0          https://www.powershellgallery... PowerShellGet                                       
    PowerShellGet                  1.1.1.0          https://www.powershellgallery... PowerShellGet  


    • Edited by SharpQ Friday, October 28, 2016 8:08 PM
    Friday, October 28, 2016 8:06 PM
  • Get-PSRepository | FL

    Name                      : jrv
    SourceLocation            : https://msdn.microsoft.com/library?url=/library/en-us/wcelib40/html/pb_start.asp/api/v2/
    Trusted                   : True
    Registered                : True
    InstallationPolicy        : Trusted
    PackageManagementProvider : NuGet
    PublishLocation           : https://msdn.microsoft.com/library?url=/library/en-us/wcelib40/html/pb_start.asp/api/v2/package/
    ScriptSourceLocation      : https://msdn.microsoft.com/library?url=/library/en-us/wcelib40/html/pb_start.asp/api/v2/items/psscript/
    ScriptPublishLocation     : https://msdn.microsoft.com/library?url=/library/en-us/wcelib40/html/pb_start.asp/api/v2/package/
    ProviderOptions           : {}

    Friday, October 28, 2016 8:08 PM
  • Thanks this is work!

    install-Package  Microsoft.ReportViewer.2012.Runtime  -Source https://go.microsoft.com/fwlink/?LinkID=206669 -Provider NuGet

    But... WSUS Reporst no work and i see err

    but this is another story.....


    • Edited by SharpQ Friday, October 28, 2016 8:32 PM
    Friday, October 28, 2016 8:31 PM