3
respostas

Ocorre erro para fazer download do Cypress

Olá, ocorre o erro abaixo, existe outra forma de configurar o projeto?

PS C:\Users\cintia.rodrigues\Documents\alura\primeiroProjeto> npm i cypress --save--include=dev
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code 1
npm ERR! path C:\Users\cintia.rodrigues\Documents\alura\primeiroProjeto\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: 10.1.0)
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/10.1.0?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.19042)
npm ERR! Cypress Version: 10.1.0
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/10.1.0?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.19042)
npm ERR! [FAILED] Cypress Version: 10.1.0

npm ERR! A complete log of this run can be found in:
3 respostas

tenta npm i cypress --save-dev mas confirma se tem conexão com a internet

Olá Jeison

Ocorreu erro igual. Sim, eu tenho conexão na internet, tanto que consigo fazer manualmente o download, a única questão é que não sou admin da máquina, não sei se isso seria um problema e se teria como configurar o cypress baixando diretamente do site, pois vi que eles tem um zip do Cypress.

PS C:\Users\cintia.rodrigues\Documents\alura\primeiroProjeto> npm i cypress --save-dev
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code 1
npm ERR! path C:\Users\cintia.rodrigues\Documents\alura\primeiroProjeto\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: 10.2.0)
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/10.2.0?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.19042)
npm ERR! Cypress Version: 10.2.0
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/10.2.0?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.19042)
npm ERR! [FAILED] Cypress Version: 10.2.0

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\cintia.rodrigues\AppData\Local\npm-cache\_logs\2022-06-22T12_19_42_212Z-debug-0.log
PS C:\Users\cintia.rodrigues\Documents\alura\primeiroProjeto>

tem sim. no site oficial do cypress ensina como instalar manualmente

https://docs.cypress.io/guides/getting-started/installing-cypress