无法通过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
相关产品推荐
相关产品推荐

