element win打包出错相关的问题有electron-builder

发布于 2022-09-12 02:09:15 字数 1596 浏览 13 评论 0

``

  • electron-builder  version=21.2.0 os=10.0.18363
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=release\builder-effective-config.yaml
  • installing production dependencies  platform=win32 arch=x64 appDir=D:\jobs\electron\pc-chat\dist
  • packaging       platform=win32 arch=x64 electron=4.2.12 appOutDir=release\win-unpacked
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.5.0/winCodeSign-2.5.0.7z size=5.6 MB parts=1
  • retrying        attempt=1
  • retrying        attempt=2
  • retrying        attempt=3
  ⨯ part download request failed with status code 403
github.com/develar/app-builder/pkg/download.(*Part).doRequest
        /Volumes/data/Documents/app-builder/pkg/download/Part.go:126
github.com/develar/app-builder/pkg/download.(*Part).download
        /Volumes/data/Documents/app-builder/pkg/download/Part.go:67
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadResolved.func1.1
        /Volumes/data/Documents/app-builder/pkg/download/downloader.go:107
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.12.7/libexec/src/runtime/asm_amd64.s:1337
  ⨯ D:\jobs\electron\pc-chat\node_modules\_app-builder-bin@3.4.3@app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=

``
我未能解决的事没法fq.,用国内的镜像安装好像出错。
除了淘宝的镜像,有其它镜像可以安装相关的依赖包吗?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

残疾 2022-09-19 02:09:15

自我解决的方法的过程
1、我买了FQ,然后npm i 一路上,没用。
2、现在是中国时间早上9点多,在美国那边时间是晚上,github突然跑通了。能直接打出来,让我有点惊喜诺狂的感觉,所以fq算是白买了。

夜空下最亮的亮点 2022-09-19 02:09:15

• packaging platform=linux arch=armv7l electron=2.0.18 appOutDir=buildlinux-armv7l-unpacked
• scheduling remote build target=snap arch=armv7l
• cannot get, wait attempt=0 error=Get https://service.electron.buil...: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it. waitTime=2
• cannot get, wait attempt=1 error=Get https://service.electron.buil...: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it. waitTime=4
• cannot get, wait attempt=2 error=Get https://service.electron.buil...: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it. waitTime=6
⨯ Get https://service.electron.buil...: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it.

Error: F:garbagenode_modulesapp-builder-binwinx64app-builder.exe exited with code 1

at ChildProcess.<anonymous> (F:\garbage\node_modules\builder-util\src\util.ts:244:14)
at Object.onceWrapper (events.js:418:26)
at ChildProcess.emit (events.js:311:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

From previous event:

at RemoteBuilder._build (F:\garbage\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:57:83)
at F:\garbage\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:52:19

From previous event:

at RemoteBuilder.build (F:\garbage\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:51:28)
at F:\garbage\node_modules\app-builder-lib\src\linuxPackager.ts:100:30

From previous event:

at RemoteTarget.finishBuild (F:\garbage\node_modules\app-builder-lib\src\linuxPackager.ts:98:20)
at F:\garbage\node_modules\app-builder-lib\src\packager.ts:438:36
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:456:21)

From previous event:

at Packager.doBuild (F:\garbage\node_modules\app-builder-lib\src\packager.ts:396:24)
at F:\garbage\node_modules\app-builder-lib\src\packager.ts:366:57
at Generator.next (<anonymous>)
at F:\garbage\node_modules\graceful-fs\graceful-fs.js:136:16
at F:\garbage\node_modules\graceful-fs\graceful-fs.js:57:14
at FSReqCallback.oncomplete (fs.js:154:23)

From previous event:

at Packager._build (F:\garbage\node_modules\app-builder-lib\src\packager.ts:335:133)
at F:\garbage\node_modules\app-builder-lib\src\packager.ts:331:23
at Generator.next (<anonymous>)
at processImmediate (internal/timers.js:456:21)

From previous event:

at Packager.build (F:\garbage\node_modules\app-builder-lib\src\packager.ts:288:14)
at build (F:\garbage\node_modules\app-builder-lib\src\index.ts:59:28)
at build (F:\garbage\node_modules\electron-builder\src\builder.ts:228:10)
at F:\garbage\node_modules\electron-builder\src\cli\cli.ts:49:19

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/c... for documentation about this command.
请问这个问题怎么解决

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文