You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过npm全局安装Cypress,配置代理仍报错求助

Global Cypress Installation Fails with "unable to get local issuer certificate" Error (Proxy Configured)

Hey everyone, I'm stuck trying to install Cypress globally on my Windows machine. I ran the command npm i cypress -g after setting up the correct proxy settings for my workplace, but the installation fails during the post-install download step when Cypress tries to fetch its desktop app.

Here's the full terminal output from my installation attempt:

C:\Users\mXXXXX\Work\Toolss\Test>npm i cypress -g
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
C:\Users\mXXXXX\AppData\Roaming\npm\cypress -> C:\Users\mXXXXX\AppData\Roaming\npm\node_modules\cypress\bin\cypress
cypress@5.3.0 postinstall C:\Users\mXXXXX\AppData\Roaming\npm\node_modules\cypress
node index.js --exec install

Installing Cypress (version: 5.3.0)
× Downloading Cypress → Cypress Version: 5.3.0
Unzipping Cypress
Finishing Installation

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.

Otherwise, please check network connectivity and try again:

URL: https://download.cypress.io/desktop/5.3.0?platform=win32&arch=x64

Error: unable to get local issuer certificate

Platform: win32 (10.0.17134)
Cypress Version: 5.3.0

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cypress@5.3.0 postinstall: node index.js --exec install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cypress@5.3.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mXXXXX\AppData\Roaming\npm-cache_logs\2020-09-29T14_52_51_373Z-debug.log

The core issue here is the unable to get local issuer certificate error. I've already verified that my npm proxy settings are correctly configured for my network, but this error keeps popping up. Does anyone have ideas on how to fix this? I'd really appreciate any help!

内容的提问来源于stack exchange,提问作者Deepak

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.09 08:52:42