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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 112Environment:
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:70npm config set https-proxy http://proxy.example.net:70For Setting Environment Variables:
set HTTPS_PROXY=http://domain%5Cusername:[email protected]:70set HTTP_PROXY=http://domain%5Cusername:[email protected]:70set HTTPS_PROXY=https://proxy.example.net:70set http-proxy=http://proxy.example.net:70set SOME_VARIABLE=some-valueFor npm Configuration:
npm config set proxy http://proxy.example.net:70npm config set http-proxy http://proxy.example.net:70For Git configuration:
git config --global https.proxy http://proxy.example.net:70git config --global http.proxy http://proxy.example.net:70For Certificate Issues:(Consult the security team before executing these commands)
npm set strict-ssl=falseset NODE_TLS_REJECT_UNAUTHORIZED=0Installing 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-devagain -> Same error showed up again ->npm ERR! code ERR_SSL_TLSV1_UNRECOGNIZECan anyone help me overcome this issue, please?
Beta Was this translation helpful? Give feedback.
All reactions