The electron-builder has been tormented in these two days; Documents are in the cloud, can only rely on Google. Now enter the topic.

Timeout problems

• Electron-builder version=22.9.1 OS =10.0.19042 • Description is missed in the package.json AppPackageFile =G:\_personal\lasa-project-client\dist_electron\bundled\package.json • Author is missed in the Package. json appPackageFile=G:\_personal\lasa-project-client\dist_electron\bundled\package.json • writing effective CONFIG file=dist_electron\ Builder-effective - CONFIG. YAML • Chuan-Chuang Native Dependencies Dependencies [email protected] Platform = Win32 arch=x64 • Chuan-Chuang Native Dependancy Name =sqlite3 version=5.0.0 • Packaging Platform = Win32 arch=x64 • Chuan-Chuang Native Dependancy Name =sqlite3 version=5.0.0 • Packaging Platform = Win32 arch=x64 Electron =9.3.3 appoutDir =dist_electron\win-unpacked • default electron icon is used reason=application icon is not set ⨯  Get "https://github-releases.githubusercontent.com/65527128/f73f2200-5d53-11ea-8264-ddd345f11ee4?X-Amz-Algorithm=AWS4-HMAC-S HA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210716%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210716T015308Z&X-Amz -Expires=300&X-Amz-Signature=d1a508b2e0e7ed18229f10842c8a3cc105b83307d3e6750b81622f0713a91dab&X-Amz-SignedHeaders=host&a Ctor_id = 0 & key_id = 0 & repo_id = 65527128 & response - content - disposition = 20 filename attachment % 3 b % % 3 dwincodesign - 2.6.0.7 z&respons E-Content-Type = Application % 2focet-stream ": Read TCP 172.17.7.151:64211->185.199.111.154:443: WSARECV: An existing connection was forcibly closed by the remote host.



This is the console error, then the corresponding folder is indeed out of goods. It looks like a downloadwinCodeSignThis thing timed out, and it gave an error. I thought, I was not an agent, how to return the error. So he began to fill the hole.

PLANA – manual download

C:\Users\ Zhangsan \AppData\Local\ Electron-Builder \Cache. This file contains the following files :\Users\ Zhangsan \AppData\Local\ Electron-Builder \Cache So I downloaded it manually. However, I did not want to download it manually because I was afraid that the version and other things would not match, so I searched hard and found PLANB.

PLANB – Settings. NPMRC automatically downloads

As we all know,.npmrcYou can set the address of the dependency image, or you can link to your desired address dependency image. So he went toTaobao mirrorSearch. Found this thing

It’s like a binaries about Electron-Builder. Just copy here and try.

  1. Step 1: Create a.npmrc file in the root directory. And copy it in.

    ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/
    ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/

  2. Have a tryvue-cli-service electron:buildinstruction

    The world was suddenly quiet. No more stupid timeouts.



    Now look at the previous folder, is there a fish in

Bingo!