方法一
设置npmrc
electron-builder-binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
方法二:
1、 从网站上下载相关文件
https://github.com/electron-userland/electron-builder-binaries/releases
2、 存放到系统的缓存库中
不同系统缓存资源目录如下
macOS: ~/Library/Caches/electron-builder
Linux: ~/.cache/electron-builder
windows: %LOCALAPPDATA%\electron-builder\cache
3、 详细结构
├── AppImage
│ └── AppImage-17-06-17-mac
├── AppImage-packages
│ └── 10.03.17
├── Squirrel.Windows
│ └── Squirrel.Windows-1.6.0.0
├── fpm
│ └── fpm-1.8.1-20150715-2.2.2
├── linux-tools
│ └── linux-tools-mac-10.12
├── nsis
│ └── nsis-3.0.1.13
│ └── nsis-resources-3.1.0
├── winCodeSign
│ └── winCodeSign-1.9.0
└── wine
└── wine-2.0.1-mac-10.12
https://github.com/electron-userland/electron-builder/issues/1859