-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
installIssues and PRs related to the installers.Issues and PRs related to the installers.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
System
- Version: 12.16.3
- Platform: Windows 8.1
- .NET Versions installed: 4.5.1 , 4.6.1, 4.7.2, Core 2.2, Core 3.1
What steps will reproduce the bug?
- Download latest Nodejs LTS version here : https://nodejs.org/dist/v12.16.3/node-v12.16.3-x64.msi
- Install the msi
- Choose the option to install additional tools
- Confirm the execution of the installation script
- Wait until installation fails
How often does it reproduce? Is there a required condition?
Always fails. No condition required.
What is the expected behavior?
Installation just works and finishes without errors.
What do you see instead?
The error message:
Exception calling "DownloadString" with "1" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."
At line:1 char:1
+ iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/in ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
Additional information
This seems to be well-known with Chocolatey clients:
https://chocolatey.org/docs/troubleshooting#the-request-was-aborted-could-not-create-ssltls-secure-channel
which has recently removed support for older TLS versions, see:
https://chocolatey.org/blog/remove-support-for-old-tls-versions
My computer does support TLS 1.2 and the Powershell command
[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'returns True.
I have also created a file C:\Users\<myusername>\Documents\PowerShell\Profile.ps1 with content
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"but that did not change anything. The installation still fails.
What can I do to install nodejs with its additional tools?
Can you update your installation scripts, please?
abrbhat
Metadata
Metadata
Assignees
Labels
installIssues and PRs related to the installers.Issues and PRs related to the installers.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.