GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be http:
See original GitHub issuePreflight Checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Issue Details
- Electron Packager Version:
- 14.2.1, 15.4.0
- Electron Version:
- 17.1.2
- Operating System:
- Ubuntu 20.04 x64
- Last Known Working Electron Packager version:
- 13.1.1
Expected Behavior
Building Win32 packages from my Ubuntu machine (with Wine installed) using electron-packager . --platform=win32 --out=./builds
Should get me Win32 artifacts in the ./builds folder.
Actual Behavior
Building Win32 packages from my Ubuntu machine (with Wine installed) using electron-packager . --platform=win32 --out=./builds
results in error message: Unsupported GLOBAL_AGENT.HTTP_PROXY
configuration value: URL protocol must be “http:”.
The error originated from global-agent which is an optional dependency of @electron/get.
To Reproduce
- find a Linux machine, create an empty nodeJS project, setup a barebone package.json
- put the following in package.json “devDependencies”: { “electron”: “^17.1.2”, “electron-devtools-installer”: “^3.2.0”, “electron-packager”: “^15.4.0” }
- try
npx electron-packager . --platform=win32 --out=./builds
, you shoule see the error message
Additional Information
Debug info attached below:
electron-packager Electron Packager 15.4.0
electron-packager Node v14.17.5
electron-packager Host Operating system: linux 5.13.0-30-generic (x64) +0ms
electron-packager Packager Options: {“_”:[“.”],“platform”:“win32”,“out”:“./builds”,“deref-symlinks”:true,“derefSymlinks”:true,“download”:{“rejectUnauthorized”:true,“reject-unauthorized”:true},“junk”:true,“prune”:true,“dir”:“.”,“protocols”:[]} +2ms
electron-packager Target Platforms: win32 +1ms
electron-packager Target Architectures: x64 +0ms
electron-packager Requiring author in package.json, as CompanyName was not specified for win32metadata +0ms
electron-packager Inferring application name from name in {omitted}/package.json +13ms
electron-packager Inferring appVersion from version in {omitted}/package.json +0ms
electron-packager Inferring target Electron version from electron in {omitted}/package.json +5ms
electron-packager Application name: {omitted} +18ms
electron-packager Target Electron version: 17.1.2 +0ms
electron-packager Ignored path regular expressions: [
‘/package-lock\.json$’,
‘/yarn\.lock$’,
‘/\.git($|/)’,
‘/node_modules/\.bin($|/)’,
‘\.o(bj)?$’,
‘/tmp/electron-packager’
] +0ms
electron-packager Downloading Electron with options {“rejectUnauthorized”:true,“reject-unauthorized”:true,“platform”:“win32”,“arch”:“x64”,“version”:“17.1.2”,“artifactName”:“electron”} +0ms
Unsupported GLOBAL_AGENT.HTTP_PROXY
configuration value: URL protocol must be “http:”.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top GitHub Comments
I’ve found the problem, please wait. I will submit a PR later
🎉 This issue has been resolved in version 1.14.1 🎉
The release is available on:
Your semantic-release bot 📦🚀