none
install NUGET gives an error

    Question

  • Hello,

    I'm getting the below error when NUGET is being installed.

    I installed VS 2017 community edition, SSDT for vs 2017 and still it's not part of the installation for some reason!

    windows server 2012R2 standard :

    [System.Environment]::OSVersion.Version
    
    Major  Minor  Build  Revision
    -----  -----  -----  --------
    6      3      9600   0       

       Powershell version:

    $PSVersionTable.PSVersion
    
    Major  Minor  Build  Revision
    -----  -----  -----  --------
    5      1      14409  1018  

    any help is appreciated.

    Thank you

    Install-Module MSOnline WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7405 char:21 + ... $null = PackageManagement\Install-PackageProvider -Name $script:N ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install -PackageProvider], Exception + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackag eProvider PackageManagement\Import-PackageProvider : No match was found for the specified search criteria and provider name 'NuGet'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists on the system. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7411 char:21 + ... $null = PackageManagement\Import-PackageProvider -Name $script:Nu ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (NuGet:String) [Import-PackageProvider], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.ImportPackage Provider WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Get-PackageProvider : Unable to find package provider 'NuGet'. It may not be imported yet. Try 'Get-PackageProvider -ListAvailable'. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7415 char:30 + ... tProvider = PackageManagement\Get-PackageProvider -Name $script:NuGet ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power...PackageProvider:GetPackageProvider) [Get-PackageP rovider], Exception + FullyQualifiedErrorId : UnknownProviderFromActivatedList,Microsoft.PowerShell.PackageManagement.Cmdlets.GetP ackageProvider Install-Module : NuGet provider is required to interact with NuGet-based repositories. Please ensure that '2.8.5.201' or newer version of NuGet provider is installed. At line:1 char:1 + Install-Module MSOnline + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Install-Module], InvalidOperationException + FullyQualifiedErrorId : CouldNotInstallNuGetProvider,Install-Module






    • Edited by JYousef Friday, December 7, 2018 6:53 PM
    Friday, December 7, 2018 3:19 PM

All replies

  • Please edit your post and turn of your grammarly and format the code as code using the code posting tool provided. Error messages can formatted as code as well please.

    Thanks.


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    Friday, December 7, 2018 3:54 PM
  • Also post Windows version/build and PS version


    \_(ツ)_/

    Friday, December 7, 2018 4:21 PM
    Moderator
  • Edited.

    Please mark ANSWERED if my reply contributed to your solution.

    Wednesday, December 12, 2018 2:38 PM
  • Added

    Please mark ANSWERED if my reply contributed to your solution.

    Wednesday, December 12, 2018 2:38 PM
  • Hi,

    Thanks for your question.

    You can try to run the command below to check "NuGet" provider.

    Get-PackageProvider -ListAvailable

    If "NuGet" provider didn't exist, try to install it.

    Install-PackageProvider -Name "NuGet"

    Best Regards,

    Lee


    Just do it.

    Thursday, December 13, 2018 9:25 AM
    Moderator
  • Also, you can try to install the module manually. 

    Refer the link below:

    https://www.powershellgallery.com/packages/MSOnline/1.1.183.17

    Best Regards,

    Lee


    Just do it.

    Thursday, December 13, 2018 9:29 AM
    Moderator