Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Unable to download NuGet #224

Closed
Markor360 opened this issue Jun 11, 2020 · 6 comments
Closed

Unable to download NuGet #224

Markor360 opened this issue Jun 11, 2020 · 6 comments
Assignees
Labels
Installation module installation Pending Feedback waiting for additional information or feedback

Comments

@Markor360
Copy link

I'm unable to download and install NuGet. I run the Install-Module -Force SkipPublisherCheck command and get the follow error.
No NuGet install.txt

@jdhitsolutions
Copy link
Collaborator

What version of Windows and PowerShell are you running?

if you run Find-PackageProvider do you see nuget listed? If so try this:

Install-packageprovider -name nuget -requiredversion 2.8.5.201 -force -forcebootstrap

@jdhitsolutions jdhitsolutions added Installation module installation Pending Feedback waiting for additional information or feedback labels Jun 11, 2020
@jdhitsolutions jdhitsolutions self-assigned this Jun 11, 2020
@andreasjordan
Copy link

You had this error:

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.

Depending on the windows-version, old TLS version is used and not allowed by the server at microsoft.
Try this to use only new TLS versions:

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value 1

I normaly use this to set up PowerShell on new maschines:

Install-PackageProvider -Name Nuget -Force | Out-Null
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

@jdhitsolutions jdhitsolutions changed the title Unable ot download NuGet Unable to download NuGet Jun 16, 2020
@jdhitsolutions
Copy link
Collaborator

Is this still an open issue?

@jdhitsolutions
Copy link
Collaborator

I put this line in my PowerShell profile.

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

@jdhitsolutions
Copy link
Collaborator

I'm wondering if I should just make this part of the module.

@Markor360
Copy link
Author

Markor360 commented Aug 4, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Installation module installation Pending Feedback waiting for additional information or feedback
Projects
None yet
Development

No branches or pull requests

3 participants