1
resposta

erro ao instalar o cypress

Caros , estou tentando instalar o cypress no vscode ,usando esse comando (npm install cypress) e estou recebendo esse erro

npm ERR! code 1 npm ERR! path C:\Users\ronald.s.pires\Desktop\BackUp_1\TREX\Trilha QA Alura com Javascript e Cypress\Treinamento Alura - Cypress\primeiro_projeto\node_modules\cypress npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c C:\Users\RONALD~1.PIR\AppData\Local\Temp\postinstall65743354577.cmd npm ERR! Installing Cypress (version: 10.3.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.3.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.19044) npm ERR! Cypress Version: 10.3.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.3.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.19044) npm ERR! [FAILED] Cypress Version: 10.3.0

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ronald.s.pires\AppData\Local\npm-cache_logs\2022-07-10T06_12_10_436Z-debug-0.log

Alguém sabe como corrigir ?

1 resposta

Parece que o erro é que não está conseguindo conectar com a internet. Tenta abrir seu vscode como administrador. Tentou rodar com o comando --include=dev

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software