Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: unable to get local issuer certificate #17238

Closed
chauhansumit12 opened this issue Jul 7, 2021 · 9 comments
Closed

Error: unable to get local issuer certificate #17238

chauhansumit12 opened this issue Jul 7, 2021 · 9 comments
Labels
stage: needs information Not enough info to reproduce the issue stale no activity on this issue for a long period topic: installation Issue during installation or downloading Cypress

Comments

@chauhansumit12
Copy link

chauhansumit12 commented Jul 7, 2021

Error: unable to get local issuer certificate

Trying to install cypress on windows 10 64 bit, with Zscaler service.

$ npm install cypress
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated querystring@0.2.0: The

> cypress@7.7.0 postinstall C:\Users\sc16569\Desktop\TODOMVC-TESTS\node_modules\cypress
> node index.js --exec install

Installing Cypress (version: 7.7.0)


The Cypress App could not be downloaded.

Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration

Otherwise, please check network connectivity and try again:

----------

URL: https://download.cypress.io/desktop/7.7.0?platform=win32&arch=x64
Error: unable to get local issuer certificate

----------

Platform: win32 (10.0.18363)
Cypress Version: 7.7.0
@chauhansumit12 chauhansumit12 added the topic: installation Issue during installation or downloading Cypress label Jul 7, 2021
@jennifer-shehane
Copy link
Member

Is this your first time installing Cypress or are you updating from a previous version that worked?

Are you behind a corporate proxy? If so, you need to follow the full instructions to configure the proxy to work with Cypress: on.cypress.io/proxy-configuration

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Jul 7, 2021
@chauhansumit12
Copy link
Author

chauhansumit12 commented Jul 7, 2021 via email

@chr1soscl
Copy link

so what option do we have if we have to use JFrog artifactory? we cannot set up a proxy, we are force to go through JFrog. so we will not be able to use cypress?

@jennifer-shehane
Copy link
Member

Cypress will not functionally work if your company uses a proxy or has restricted internet access within Cypress and cannot allow Cypress a way around that. All of the details on why this is necessary and how to get around it are detailed in https://on.cypress.io/proxy-configuration. Some configurations won't work out of the box, but workarounds may work.

@chr1soscl
Copy link

No, this is the first time I am installing it. How to check if we are behind a corporate proxy, as when I checked the proxy setting in my machine, I don't see anything set. We use Zscaler for internet security. Thanks, sumit

________________________________ From: Jennifer Shehane @.> Sent: Wednesday, July 7, 2021 9:56 PM To: cypress-io/cypress @.> Cc: chauhansumit12 @.>; Author @.> Subject: Re: [cypress-io/cypress] Error: unable to get local issuer certificate (#17238) Is this your first time installing Cypress or are you updating from a previous version that worked? Are you behind a corporate proxy? If so, you need to follow the full instructions to configure the proxy to work with Cypress: on.cypress.io/proxy-configuration — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#17238 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMP6TNUE7GBYTX5MWX5KY5DTWR545ANCNFSM4765LIFQ.

Error: unable to get local issuer certificate

Trying to install cypress on windows 10 64 bit, with Zscaler service.

$ npm install cypress
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated querystring@0.2.0: The

> cypress@7.7.0 postinstall C:\Users\sc16569\Desktop\TODOMVC-TESTS\node_modules\cypress
> node index.js --exec install

Installing Cypress (version: 7.7.0)


The Cypress App could not be downloaded.

Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration

Otherwise, please check network connectivity and try again:

----------

URL: https://download.cypress.io/desktop/7.7.0?platform=win32&arch=x64
Error: unable to get local issuer certificate

----------

Platform: win32 (10.0.18363)
Cypress Version: 7.7.0

there is an optional way to install Cypress, you need to download the cypress zip file from their downloads and set an environment variable:
setx CYPRESS_INSTALL_BINARY c:\downloads\cypress.zip

then restart your vscode so it takes the change and try to install again:
npm install --save-dev cypress, this should work.

@chauhansumit12
Copy link
Author

@chr1soscl Even the above step didn't work.
@jennifer-shehane How can we check that we are behind a corporate proxy? Are there any steps to check that, as I did try to find proxy settings on my machine but couldn't see any Proxy IP?

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added stale no activity on this issue for a long period and removed stale no activity on this issue for a long period labels May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Nov 14, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue stale no activity on this issue for a long period topic: installation Issue during installation or downloading Cypress
Projects
None yet
Development

No branches or pull requests

4 participants