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

``

  • 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.,用国内的镜像安装好像出错。
除了淘宝的镜像,有其它镜像可以安装相关的依赖包吗?

阅读 12.5k
2 个回答

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

新手上路,请多包涵

• 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.
请问这个问题怎么解决

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏