Troubleshooting SSL/TLS Error When Installing Cypress in Corporate Environment #28512
Unanswered
KSHCR7
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to install Cypress in my corporate environment using npm, but I am encountering an SSL/TLS error.
I suspect it might be related to our corporate proxy settings
Error Message:
When I run
npm install cypress --save-dev
, I received the following error:npm ERR! code ERR_SSL_TLSV1_UNRECOGNIZED_NAME npm ERR! errno ERR_SSL_TLSV1_UNRECOGNIZED_NAME npm ERR! request to https://proxy.example.net/cypress failed, reason: D04D0000:error:0A000458:SSL routines:ssl3_read_bytes:tlsv1 unrecognized name:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1586:SSL alert number 112
Environment:
Operating System: Windows
Node.js version: Latest version npm version: Latest version
If anyone has encountered a similar issue or possesses knowledge in this area, your insights would be greatly appreciated. Specifically, I am looking for:
FYI: I went through the related questions list in "Stack Overflow", but I couldn't resolve the issue:
Note: In this question, I have altered specific network details such as domain names, proxy addresses, and port numbers for security and privacy reasons. Please consider these as placeholders while providing any advice or solutions. Thank you for understanding.
Set Proxy Configuration:
npm config set proxy http://proxy.example.net:70
npm config set https-proxy http://proxy.example.net:70
For Setting Environment Variables:
set HTTPS_PROXY=http://domain%5Cusername:password@proxy.example.net:70
set HTTP_PROXY=http://domain%5Cusername:password@proxy.example.net:70
set HTTPS_PROXY=https://proxy.example.net:70
set http-proxy=http://proxy.example.net:70
set SOME_VARIABLE=some-value
For npm Configuration:
npm config set proxy http://proxy.example.net:70
npm config set http-proxy http://proxy.example.net:70
For Git configuration:
git config --global https.proxy http://proxy.example.net:70
git config --global http.proxy http://proxy.example.net:70
For Certificate Issues:(Consult the security team before executing these commands)
npm set strict-ssl=false
set NODE_TLS_REJECT_UNAUTHORIZED=0
Installing Cypress locally:
I followed the installation instructions provided by Cypress, installing it as a desktop application on my local machine, After installation, I attempted to run Cypress, but I faced issues possibly related to my corporate proxy settings.
Seek help:
CC: @cypress-github-team-services-sa When I configured the environment & npm & HTTP/HTTPS & Git and the Certificate there were no indications of errors within the CMD.
I executed
npm install cypress --save-dev
again -> Same error showed up again ->npm ERR! code ERR_SSL_TLSV1_UNRECOGNIZE
Can anyone help me overcome this issue, please?
Beta Was this translation helpful? Give feedback.
All reactions