Closed Markor360 closed 4 years ago
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
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
Is this still an open issue?
I put this line in my PowerShell profile.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
I'm wondering if I should just make this part of the module.
Thanks for response, but I’m not currently working on this course anymore. I’ve moved onto something else.
From: Jeff Hicks notifications@github.com Sent: Tuesday, August 4, 2020 4:27 PM To: pluralsight/PS-AutoLab-Env PS-AutoLab-Env@noreply.github.com Cc: Mark Hoffman m.hoffman@sandycove.org; Author author@noreply.github.com Subject: Re: [pluralsight/PS-AutoLab-Env] Unable to download NuGet (#224)
I'm wondering if I should just make this part of the module.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pluralsight/PS-AutoLab-Env/issues/224#issuecomment-668808147, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AP5T3NTFNIQR3VALCO3DAM3R7BVJPANCNFSM4N3UHISA.
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