Skip to content

Instantly share code, notes, and snippets.

@mpahuja
Created November 7, 2019 06:17
Show Gist options
  • Save mpahuja/6599377c5f8e18711c633387a56fc5d4 to your computer and use it in GitHub Desktop.
Save mpahuja/6599377c5f8e18711c633387a56fc5d4 to your computer and use it in GitHub Desktop.
Cypress Install issues with CYPRESS_INSTALL_BINARY set as an environment
mpahuja-mbp151:test mpahuja$ DEBUG=cypress:cli CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip npm i cypress
> [email protected] postinstall /Users/mpahuja/opensource/test/node_modules/cypress
> node index.js --exec install
cypress:cli installing Cypress from NPM +0ms
cypress:cli installing with options {} +0ms
cypress:cli version in package.json is 3.6.0 +0ms
cypress:cli Using CYPRESS_INSTALL_BINARY from environment variable +0ms
cypress:cli Using CYPRESS_INSTALL_BINARY from environment variable +0ms
cypress:cli using environment variable CYPRESS_INSTALL_BINARY "https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip" +1ms
cypress:cli Reading binary package.json from: /Users/mpahuja/Library/Caches/Cypress/3.6.0/Cypress.app/Contents/Resources/app/package.json +0ms
cypress:cli no binary installed under cli version +3ms
⚠ Warning: Forcing a binary version different than the default.
The CLI expected to install version: 3.6.0
Instead we will install version: https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip
These versions may not work properly together.
cypress:cli checking local file /Users/mpahuja/opensource/test/https:/cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip cwd /Users/mpahuja/opensource/test/node_modules/cypress +1ms
cypress:cli preparing to download and unzip version https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip to path /Users/mpahuja/Library/Caches/Cypress/3.6.0 +0ms
Installing Cypress (version: https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip)
cypress:cli version is already an url https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip +0ms
cypress:cli needed Cypress version: https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip +0ms
cypress:cli source url https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip +0ms
cypress:cli downloading cypress.zip to "/var/folders/3m/qnbkjy4j691624kbw64fdjkc0000gp/T/cypress.zip" +0ms
cypress:cli Downloading package { url:
'https://cdn.cypress.io/desktop/3.4.1/darwin-x64/cypress.zip',
proxy: null,
downloadDestination:
'/var/folders/3m/qnbkjy4j691624kbw64fdjkc0000gp/T/cypress.zip' } +0ms
⠙ Downloading Cypress
Unzipping Cypress
⠙ Downloading Cypress 96% 0s
Unzipping Cypress
⠼ Downloading Cypress 99% 0s
Unzipping Cypress
Finishing Installation
cypress:cli downloaded file has the expected checksum and size ✅ +338ms
cypress:cli finished downloading file: /var/folders/3m/qnbkjy4j691624kbw64fdjkc0000gp/T/cypress.zip +3s
✔ Downloaded Cypress
⠧ Unzipping Cypress 86% 2s
✔ Downloaded Cypress
✔ Unzipped Cypress
✔ Finished Installation /Users/mpahuja/Library/Caches/Cypress/3.6.0
You can now open Cypress by running: node_modules/.bin/cypress open
https://on.cypress.io/installing-cypress
npm WARN saveError ENOENT: no such file or directory, open '/Users/mpahuja/opensource/test/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/mpahuja/opensource/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.
+ [email protected]
added 1 package from 1 contributor and audited 1022 packages in 18.038s
found 0 vulnerabilities
mpahuja-mbp151:test mpahuja$ ./node_modules/.bin/cypress open
Found binary version 3.4.1 installed in: /Users/mpahuja/Library/Caches/Cypress/3.6.0/Cypress.app
⚠ Warning: Binary version 3.4.1 does not match the expected package version 3.6.0
These versions may not work properly together.
It looks like this is your first time using Cypress: 3.4.1
✔ Verified Cypress! /Users/mpahuja/Library/Caches/Cypress/3.6.0/Cypress.app
Opening Cypress...
mpahuja-mbp151:test mpahuja$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment