当前位置:网站首页>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
边栏推荐
- Game assisted script development journey
- 层次输出二叉树
- Visualization Road (IX) detailed explanation of arrow class
- King glory - unity learning journey
- Design optimization of MySQL database
- Django uses MySQL database to solve error reporting
- Mvcc (multi version concurrency control)
- RGB颜色转HEX进制与单位换算
- ABAP 实现发布RESTful服务供外部调用示例
- redis连接出错 ERR AUTH <password> called without any password configured for the default user.
猜你喜欢
基于NLP的软件安全研究(二)
canvas学习第一篇
‘npm‘不是内部或外部命令,也不是可运行的程序 或批处理文件
超级宝典&编程指南(红蓝宝书)-读书笔记
设置了body的最大宽度,但是为什么body的背景颜色还铺满整个页面?
redis连接出错 ERR AUTH <password> called without any password configured for the default user.
SAP pi / PO rfc2soap publishes RFC interface as WS example
反思 | 事件总线的局限性,组件化开发流程中通信机制的设计与实现
Design optimization of MySQL database
Ogldev reading notes
随机推荐
Authorization+Token+JWT
游戏辅助脚本开发之旅
c#读取INI文件和向ini文件写入数据
Thorough inquiry -- understanding and analysis of cocos2d source code
js之排他思想及案例
反思 | Android 音视频缓存机制的系统性设计
14. Transaction processing
手游性能优化
快排的练习
Design optimization of MySQL database
手游的热更方案与动态更新策略
js之什么是事件?事件三要素以及操作元素
2022.3.14 阿里笔试
【TED系列】如何与内心深处的批评家相处?
How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)
SAP PI / Po rfc2restful Publishing RFC interface as restful examples (proxy indirect)
给定区段范围内字符串自生成代码
Preliminary configuration of OpenGL super Dictionary (freeglut, glew, gltools, GLUT)
js之节点操作,为什么要学习节点操作
11. Table and library management