1
resposta

[Projeto] [ERROR] Falha ao instalar o Cypress

Ola pessoal, tudo bem?

Estou tentando installar o cypress no notebook da empresa que trabalho, porém o log informa as seguintes mensagens:

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm WARN deprecated @types/cypress@1.1.3: This is a stub types definition for cypress (https://cypress.io). cypress provides its own type definitions, so you don't need @types/cypress installed!
npm WARN deprecated @cypress/xpath@2.0.3: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated cypress-xpath@2.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm WARN deprecated mocha-allure-reporter@1.4.0: This project has been renamed. Install using allure-mocha instead: https://www.npmjs.com/package/allure-mocha
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 ERR! code 1
npm ERR! path C:\Users\gustavo.batista\OneDrive - Voke\Documentos\Códigos Fonte\qa_automacao_ecommerce\node_modules\cypress
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node index.js --exec install
npm ERR! Installing Cypress (version: 13.7.3)
npm ERR!
npm ERR! [STARTED] Task without title.
npm ERR! The Cypress App could not be downloaded.
npm ERR!
npm ERR! 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
npm ERR!
npm ERR! Otherwise, please check network connectivity and try again:
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! URL: https://download.cypress.io/desktop/13.7.3?platform=win32&arch=x64
npm ERR! Error: self-signed certificate in certificate chain
npm ERR!
npm ERR! ----------
npm ERR!
npm ERR! Platform: win32-x64 (10.0.22631)
npm ERR! Cypress Version: 13.7.3
npm ERR! [FAILED] The Cypress App could not be downloaded.
npm ERR! [FAILED]
npm ERR! [FAILED] 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 
npm ERR! [FAILED]
npm ERR! [FAILED] Otherwise, please check network connectivity and try again:
npm ERR! [FAILED]
npm ERR! [FAILED] ----------
npm ERR! [FAILED]
npm ERR! [FAILED] URL: https://download.cypress.io/desktop/13.7.3?platform=win32&arch=x64
npm ERR! [FAILED] Error: self-signed certificate in certificate chain
npm ERR! [FAILED]
npm ERR! [FAILED] ----------
npm ERR! [FAILED]
npm ERR! [FAILED] Platform: win32-x64 (10.0.22631)
npm ERR! [FAILED] Cypress Version: 13.7.3

npm ERR! A complete log of this run can be found in: C:\Users\gustavo.batista\AppData\Local\npm-cache\_logs\2024-04-15T13_16_30_394Z-debug-0.log

Solicitei o apoio do time de segurança porém informaram que não é o antivirus que esta bloqueando.

Alguem consegue me ajudar?

1 resposta

Olá Gustavo, Tudo bem?

Pelo que você descreveu e pelo que vejo nos logs de erro, o problema está relacionado com a configuração de rede da sua empresa, especificamente com a questão do proxy, já que ele contém filtros do download que servem para segurança.

Então a solução para esse caso seria que você desativasse o proxy que você está utilizando para conectar a rede do seu trabalho durante o seu período de estudo, para que você não tenha conflitos como esse.

Espero que essa solução lhe ajude e bons estudos!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓.