Electron - Installation Troubleshooting2021-06-27 23:18Electron, NPM

下载 Electron 过慢解决方法

方法 1 设置镜像

npm config set ELECTRON_MIRROR https://npm.taobao.org/mirrors/electron/

方法 2 直接下载文件然后放到本地缓存目录

从这里下载镜像: https://npm.taobao.org/mirrors/electron

然后放到系统相对的目录里面:

Linux: $XDG_CACHE_HOME or ~/.cache/electron/
MacOS: ~/Library/Caches/electron/
Windows: %LOCALAPPDATA%/electron/Cache or ~/AppData/Local/electron/Cache/

然后重复 Electron 的安装

Powered by Remix
|
Designed by szhshp
|
Copyright © szhshp 2022