Skip to content

Can't install NPM package due to connection discrimination, 403 response #29267

Open
@mashdragon

Description

@mashdragon

Current behavior

When npm tries to install Cypress, it fails with a 403 response. You can reproduce this using torsocks to load the files over a Tor connection: torsocks npm i

Debug logs

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.1?platform=linux&arch=x64
npm ERR! [FAILED] Error: Failed downloading the Cypress binary.
npm ERR! [FAILED] Response code: 403
npm ERR! [FAILED] Response message: Forbidden
npm ERR! [FAILED] 
npm ERR! [FAILED] ----------

Cypress Version

13.7.1

Node version

v20.12.0

Package Manager

npm

Package Manager Version

10.5.0

Operating system

Linux

Operating System Version

?

Other

Related is #29124. The best fix would be to remove Cloudflare discrimination against connections since forcing the manual install method is burdensome to developers who are blocked by Cloudflare or who want privacy from Cypress and/or Cloudflare logging installs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions