当前位置:网站首页>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
边栏推荐
猜你喜欢

js之什么是事件?事件三要素以及操作元素

Simple random roll call lottery (written under JS)

SAP SALV14 后台输出SALV数据可直接保存文件,发送Email(带排序、超链接、筛选格式)

SAP pi / PO rfc2soap publishes RFC interface as WS example

Redis connection error err auth < password > called without any password configured for the default user

防抖和节流

设置了body的最大宽度,但是为什么body的背景颜色还铺满整个页面?

Visualization Road (IX) detailed explanation of arrow class

页面实时显示当前时间

Reflect on the limitations of event bus and the design and implementation of communication mechanism in component development process
随机推荐
12. Constraints
js之预解析
层次输出二叉树
反思 | 事件总线的局限性,组件化开发流程中通信机制的设计与实现
Mobile game performance optimization
系统与软件安全研究(四)
SAP DEBUG调试FOR IN、REDUCE等复杂的语句
SAP PI/PO功能运行状态监控检查
给定区段范围内字符串自生成代码
【自我激励系列】你永远不会准备好
【TED系列】如何与内心深处的批评家相处?
SAP Excel 已完成文件级验证和修复。此工作簿的某些部分可能已被修复或丢弃。
C#使用拉依达准则(3σ准则)剔除异常数据(.Net剔除一组数据中的奇异值)
‘npm‘不是内部或外部命令,也不是可运行的程序 或批处理文件
What are the total number of all courses of Mr. Tang Xiaoyang, who is very popular in CSDN (question mark)
系统与软件安全研究(三)
ogldev-读书笔记
8.分页查询
js案例之求最大值,反转数组,冒泡排序
2022.3.14 Ali written examination