-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about CYPRESS_DOWNLOAD_MIRROR and CYPRESS_DOWNLOAD_PATH_TEMPLATE #22864
Comments
We need the endpoint to equal "desktop/10.3.0" for our own download filesystem, (I'm not sure why desktop is in there). But I think it would be possible to add passively a
to get this: A contribution would probably be the fastest way to get this change. |
No. ❯ CYPRESS_DOWNLOAD_MIRROR=https://cdn.npmmirror.com/binaries/cypress/ CYPRESS_DOWNLOAD_PATH_TEMPLATE='${version}/${platform}-${arch}/cypress.zip' npm i cypress
(##################) ⠦ reify:cypress: timing reifyNode:node_modules/lodash Completed in 672ms
> cypress@10.3.1 postinstall
> node index.js --exec install
Installing Cypress (version: 10.3.1)iming reifyNode:node_modules/cypress Completed in 686ms
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. Read more: https://on.cypress.io/proxy-configuration
Otherwise, please check network connectivity and try again:
----------
URL: ${version}/linux-x64/cypress.zip
Error: Invalid URI "$%7Bversion%7D/linux-x64/cypress.zip"
----------
Platform: linux-x64 (Manjaro Linux - 21.3.5)
Cypress Version: 10.3.1
npm ERR! code 1
npm ERR! path /tmp/npm-test/node_modules/cypress
npm ERR! command failed
npm ERR! command sh -c node index.js --exec install
npm ERR! A complete log of this run can be found in:
npm ERR! /home/fengyu/.npm/_logs/2022-07-22T02_05_03_894Z-debug-0.log cypress/cli/lib/tasks/download.js Lines 63 to 76 in f0d3a48
Seems download task only replaced |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
What would you like?
when i set config
CYPRESS_DOWNLOAD_MIRROR https://cdn.npmmirror.com/binaries/cypress/
CYPRESS_DOWNLOAD_PATH_TEMPLATE ${endpoint}/${platform}-${arch}/cypress.zip
I got this:
https://cdn.npmmirror.com/binaries/cypress/desktop/10.3.0/linux-x64/cypress.zip
this url return 404 not found. (correct url without the word
desktop
like this:https://cdn.npmmirror.com/binaries/cypress/10.3.0/linux-x64/cypress.zip
)Why is this needed?
the word
desktop
in the download url is more like a magic word.without the word
desktop
, we can better set the download address through variablesremove
desktop
fromversion
desktop/10.3.0
then we can set
defaultBaseUrl="https://download.cypress.io/desktop"
forward compatibilityhttps://download.cypress.io/desktop/10.3.0?platform=win32&arch=x64
Other
No response
The text was updated successfully, but these errors were encountered: