Skip to content
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

Cannot download 6.0.9 prebuilt binary from taobao mirror #1050

Closed
jxf114208 opened this issue Sep 16, 2019 · 10 comments
Closed

Cannot download 6.0.9 prebuilt binary from taobao mirror #1050

jxf114208 opened this issue Sep 16, 2019 · 10 comments
Labels
invalid ❌ Not related to Electron Packager directly

Comments

@jxf114208
Copy link

jxf114208 commented Sep 16, 2019

Issue Details

  • Electron Packager Version:
    • 14.0.6
  • Electron Version:
    • 6.0.9
  • Operating System:
    • Ubuntu 18.04 x64
  • Last Known Working Electron Packager version::
    *

Expected Behavior

Can be packaged normally

Actual Behavior

jxf@jxf-MS-7586:~/git/testElectron$ electron-packager .
Response code 404 (Not Found)

To Reproduce

# Clone the repository
$ git clone https://github.com/electron/electron-quick-start
# Go into the repository
$ cd electron-quick-start
# Install dependencies
$ npm install
# package
$ electron-packager .
# Terminal out text
Response code 404 (Not Found)
@welcome
Copy link

welcome bot commented Sep 16, 2019

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@malept malept added the needs info Issue reporter needs to provide more information for maintainers to take action label Sep 16, 2019
@malept
Copy link
Member

malept commented Sep 16, 2019

Thanks for filing an issue! In order to help you with your problem, we're going to need more information about it. In particular:

  • Console output when you run electron-packager with the environment variable DEBUG=electron-packager (instructions for Windows and non-Windows). Please include the stack trace if one exists.

@wenbingzhang
Copy link

wenbingzhang commented Sep 17, 2019

➜ test electron-packager ./ myapp --out ../OutApp --electron-version=6.0.9
electron-packager Electron Packager 14.0.6
electron-packager Node v10.16.3
electron-packager Host Operating system: darwin 16.7.0 (x64) +0ms
electron-packager Packager Options: {"_":["./","myapp"],"deref-symlinks":true,"derefSymlinks":true,"download":{"rejectUnauthorized":true,"reject-unauthorized":true},"junk":true,"prune":true,"out":"../OutApp","electron-version":"6.0.9","electronVersion":"6.0.9","dir":"./","name":"myapp","protocols":[]} +2ms
electron-packager Target Platforms: darwin +1ms
electron-packager Target Architectures: x64 +0ms
electron-packager Inferring appVersion from version in /Users/xxxx/Downloads/test/package.json +0ms
electron-packager Application name: myapp +9ms
electron-packager Target Electron version: 6.0.9 +0ms
electron-packager Ignored path regular expressions: [ '/\.git($|/)', '/node_modules/\.bin($|/)', '\.o(bj)?$' ] +0ms
electron-packager Downloading Electron with options {"rejectUnauthorized":true,"reject-unauthorized":true,"platform":"darwin","arch":"x64","version":"6.0.9","artifactName":"electron"} +0ms
Response code 404 (Not Found)

@malept
Copy link
Member

malept commented Sep 17, 2019

Can you re-run with DEBUG='electron-packager,@electron/get:*' ?

@wenbingzhang
Copy link

wenbingzhang commented Sep 17, 2019

Can you re-run with DEBUG='electron-packager,@electron/get:*' ?

electron-packager Electron Packager 14.0.6
electron-packager Node v10.16.3
electron-packager Host Operating system: darwin 16.7.0 (x64) +0ms
electron-packager Packager Options: {"_":["./"],"deref-symlinks":true,"derefSymlinks":true,"download":{"rejectUnauthorized":true,"reject-unauthorized":true},"junk":true,"prune":true,"electron-version":"6.0.9","electronVersion":"6.0.9","dir":"./","protocols":[]} +2ms
electron-packager Target Platforms: darwin +0ms
electron-packager Target Architectures: x64 +0ms
electron-packager Inferring application name from name in /Users/xxxx/Documents/Project/Electron/xxxx/package.json +0ms
electron-packager Inferring appVersion from version in /Users/xxxx/Documents/Project/Electron/xxxx/package.json +0ms
electron-packager Application name: MxSrvs +9ms
electron-packager Target Electron version: 6.0.9 +0ms
electron-packager Ignored path regular expressions: [ '/\.git($|/)', '/node_modules/\.bin($|/)', '\.o(bj)?$' ] +0ms
electron-packager Downloading Electron with options {"rejectUnauthorized":true,"reject-unauthorized":true,"platform":"darwin","arch":"x64","version":"6.0.9","artifactName":"electron"} +0ms
@electron/get:index Checking the cache for electron-v6.0.9-darwin-x64.zip (http://npm.taobao.org/mirrors/electron/v6.0.9/electron-v6.0.9-darwin-x64.zip) +0ms
@electron/get:index Cache miss +1ms
@electron/get:index Downloading http://npm.taobao.org/mirrors/electron/v6.0.9/electron-v6.0.9-darwin-x64.zip to /var/folders/r2/gy282f1163g_jd6pr1v_xmnh0000gn/T/electron-download-ef1mLy/electron-v6.0.9-darwin-x64.zip with options: undefined +40ms
Response code 404 (Not Found)

@wenbingzhang
Copy link

macos env add export ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/

@malept malept added invalid ❌ Not related to Electron Packager directly and removed needs info Issue reporter needs to provide more information for maintainers to take action bug 🐛 labels Sep 17, 2019
@malept malept changed the title "electron-packager ." Response code 404 (Not Found) Cannot download 6.0.9 prebuilt binary from taobao mirror Sep 17, 2019
@malept
Copy link
Member

malept commented Sep 17, 2019

This is not a bug with Electron Packager, but rather the Taobao mirror is not up-to-date. Please file a bug with that service.

@malept malept closed this as completed Sep 17, 2019
@jxf114208
Copy link
Author

jxf114208 commented Sep 18, 2019

### There is more v in the address.

https://npm.taobao.org/mirrors/electron/v6.0.9/electron-v6.0.9-linux-x64.zip This can't be downloaded

https://npm.taobao.org/mirrors/electron/6.0.9/electron-v6.0.9-linux-x64.zip This can be downloaded

@egoist
Copy link

egoist commented Oct 30, 2019

The workaround is to use a fixed version:

npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"
npm config set electron_custom_dir "7.0.0"

@malept
Copy link
Member

malept commented Oct 30, 2019

See: electron/get#120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid ❌ Not related to Electron Packager directly
Projects
None yet
Development

No branches or pull requests

4 participants