cypress: Could not install cypress behind firewall - cannot read repository cypress-io/request.git

Current behavior:

This command worked for me until few hours (I saw that there was a new release)

CYPRESS_INSTALL_BINARY=${path}/cypress.zip npm install cypress

I get this error :

npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/cypress-io/request.git
npm ERR! Could not read from remote repository

Desired behavior:

Normally it should unzip the zipped cypress and install and I see the package in node_modules. I don’t know why it is looking for that github repo.

Versions

3.8.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 29 (11 by maintainers)

Commits related to this issue

Most upvoted comments

We release every 2 weeks, used to be on Friday - recently changed to Monday. We do releases sooner if something warrants a hotfix (aka something that does not have a workaround that is a blocker for enough users).

Ways to know there is a new release:

  • New entry in GitHub releases
  • New published cypress npm version
  • Our changelog is updated
  • Our bot comments on every issue fixed in the release (can subscribe to specific issues to be notified)
  • There is generally social media announcements about them, but I wouldn’t count on these being immediate.

There’s likely some utilities out there you could find to notify you on npm release or GitHub release.

Opened an issue in our docs to document this somewhere: https://github.com/cypress-io/cypress-documentation/issues/2661

since the update to 4.2.0 i have an additional entry in my (yarn) lockfile

"request@github:cypress-io/request#b5af0d1fa47eec97ba980cde90a13e69a2afcd16":
  version "2.88.1"
  resolved "https://codeload.github.com/cypress-io/request/tar.gz/b5af0d1fa47eec97ba980cde90a13e69a2afcd16"
  dependencies:
    aws-sign2 "~0.7.0"
    aws4 "^1.8.0"
    caseless "~0.12.0"
    combined-stream "~1.0.6"
    extend "~3.0.2"
    forever-agent "~0.6.1"
    form-data "~2.3.2"
    har-validator "~5.1.3"
    http-signature "~1.2.0"
    is-typedarray "~1.0.0"
    isstream "~0.1.2"
    json-stringify-safe "~5.0.1"
    mime-types "~2.1.19"
    oauth-sign "~0.9.0"
    performance-now "^2.1.0"
    qs "~6.5.2"
    safe-buffer "^5.1.2"
    tough-cookie "~2.5.0"
    tunnel-agent "^0.6.0"
    uuid "^3.3.2"

because my build is also behind a firewall, yarn tries to get to that url and fails…

I have change the version 👎 { “name”: “cypressautomation”, “version”: “4.1.0”, “description”: “”, “main”: “index.js”, “scripts”: { “test”: “echo "Error: no test specified" && exit 1” }, “author”: “”, “license”: “ISC” }

and executed this command

npm install cypress --save-dev

still same issue

Workaround

Install Cypress 4.1.0 - that version does not have this issue. This will be fixed in our next release which is scheduled for Monday.

@SirineBeji This should not happen in 3.8.0, ensure you are using 3.8.0 release zip. Is it the exact same error above mentioning ssh://git@github.com/cypress-io/request.git

Yes, this will be fixed in our next release estimated for Mar 30.

Yeah we should publish it under @cypress/request and only use npm registry

Sent from my iPhone

On Mar 18, 2020, at 15:51, Zach Bloomquist notifications@github.com wrote:

That’s strange, NPM should fall back to cloning the dependency via https if ssh is not working on your machine. git may be required as well.

To avoid this, Cypress’s request fork should be published to NPM, and then we don’t need to ship with a GitHub-backed NPM dependency that causes these issues for some users.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.