当前位置:网站首页>electron-builder打包报错:proxyconnect tcp: dial tcp :0: connectex
electron-builder打包报错:proxyconnect tcp: dial tcp :0: connectex
2022-04-23 06:27:00 【阿兵哥哥】
错误代码:
$ electron-builder --win --x64
• electron-builder version=23.0.3 os=10.0.19044
• loaded configuration file=package.json ("build" field)
• description is missed in the package.json appPackageFile=D:\Demo\electron-vue3\package.json
• writing effective config file=D:\build\electron\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=18.1.0 appOutDir=D:\build\electron\win-unpacked
⨯ Get "https://github.com/electron/electron/releases/download/v18.1.0/electron-v18.1.0-win32-x64.zip": proxyconnect tcp: dial tcp :0: connectex: The requested address is not valid in its context.
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:206
github.com/develar/app-builder/pkg/download.(*Downloader).follow
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:234
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadNoRetry
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:128
github.com/develar/app-builder/pkg/download.(*Downloader).Download
/Volumes/data/Documents/app-builder/pkg/download/downloader.go:112
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).doDownload
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:192
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).Download
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:177
github.com/develar/app-builder/pkg/electron.downloadElectron.func1.1
/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:73
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
/Volumes/data/Documents/app-builder/pkg/util/async.go:68
runtime.goexit
/usr/local/Cellar/go/1.17/libexec/src/runtime/asm_amd64.s:1581
⨯ D:\Demo\electron-vue3\node_modules\app-builder-bin\win\x64\app-builder.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1 failedTask=build stackTrace=Error: D:\Demo\electron-vue3\node_modules\app-builder-bin\win\x64\app-builder.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
at ChildProcess.<anonymous> (D:\Demo\electron-vue3\node_modules\builder-util\src\util.ts:250:14)
at Object.onceWrapper (events.js:520:26)
at ChildProcess.emit (events.js:400:28)
at ChildProcess.cp.emit (D:\Demo\electron-vue3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
解决方法:
浏览器下载 electron 包,将其放入 C:\Users\用户名\AppData\Local\electron\Cache 目录下即可。
版权声明
本文为[阿兵哥哥]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Ayue1220/article/details/124328824
边栏推荐
- 3. Sort statement
- [Ted series] how to get along with inner critics?
- 定位、修饰样式
- 【TED系列】如何与内心深处的批评家相处?
- 1. View databases and tables
- 配置npm
- Processing of common dependency module
- SAP SALV14 后台输出SALV数据可直接保存文件,发送Email(带排序、超链接、筛选格式)
- 将单行文字自动适应到目标矩形框内
- Reflection on the systematic design of Android audio and video caching mechanism
猜你喜欢

int a = 1存放在哪

ABAP 从CDS VIEW 发布OData Service示例

王者荣耀-unity学习之旅

redis连接出错 ERR AUTH <password> called without any password configured for the default user.

BTREE, B + tree and hash index

SAP ECC连接SAP PI系统配置

Design optimization of MySQL database

Install and configure Taobao image NPM (cnpm)

超级宝典&编程指南(红蓝宝书)-读书笔记

Redis connection error err auth < password > called without any password configured for the default user
随机推荐
每日一题 | 曾被反转链表支配的恐惧
6.聚合函数和分组统计
9. Common functions
1. View databases and tables
超级宝典&编程指南(红蓝宝书)-读书笔记
12. Constraints
设置了body的最大宽度,但是为什么body的背景颜色还铺满整个页面?
系统与软件安全研究(五)
Preliminary configuration of OpenGL super Dictionary (freeglut, glew, gltools, GLUT)
[self motivation series] you'll never be ready
SAP 03-AMDP CDS Table Function using ‘WITH‘ Clause(Join子查询内容)
Two threads print odd and even numbers interactively
Mvcc (multi version concurrency control)
[Ted series] how to get along with inner critics?
VR、AR、MR的区别与应用,以及对AR技术的一些实现原理
instanceof的实现原理
Reflection on the systematic design of Android audio and video caching mechanism
NPM installation stepping pit
SAP PI/PO登录使用及基本功能简介
MySQL index