The Cypress App could not be downloaded #29426
-
The error happens when I try to install Cypress 13.8.1 with npm. Here is the key npm logs:
First thing first, I have run through these posts: And I have also gone through some SOF posts like this one: https://stackoverflow.com/questions/57158587/npm-install-error-self-signed-certificate-in-certificate-chain However, this problem is not really resolved in my case, and although I agree it should have more to do with npm and the security setup of my workplace, I still want to provide the details of my version of this problem and seek some suggestions. After running the npm install command, I observed a number of things:
Below lists the full log:
I tried to set the proxy, and then run the command again. It ran successfully:
But it actually just dismissed the error and didn't rollback the files placed under path ./node_modules/, the Windows application was still NOT there, the folder %LocalAppData%\Cypress\Cache is still empty. On the other hand, I'm able to go to https://download.cypress.io/desktop/13.8.1?platform=win32&arch=x64 with Chrome and download it. In my work environment, there is a tool acting like a proxy and it automatically inject certificates into the network requests, thus it's not supposed to set http proxy explicitly, but it's possible that it's not configurated to work for npm yet, I will find out with the security department. But, putting that aside, I still have a couple of questions:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Based on my experiment, just running If you can't make it work, another option is to run: set NODE_TLS_REJECT_UNAUTHORIZED=0 |
Beta Was this translation helpful? Give feedback.
Based on my experiment, just running
set NODE_EXTRA_CA_CERTS="your.pem"
will never work. You need to add a system variable for NODE_EXTRA_CA_CERTS, and reboot the computer.If you can't make it work, another option is to run:
set NODE_TLS_REJECT_UNAUTHORIZED=0