参考
- https://blog.csdn.net/Johanna51/article/details/123360477
- https://www.electronjs.org/zh/docs/latest/tutorial/installation
- https://cloud.tencent.com/developer/article/1781066
环境
环境 | 版本 | 说明 |
---|---|---|
Windows | 10 | |
node | v20.11.0 | |
npm | 10.2.4 | Windows 下 node 自带 |
electron | ^28.2.0 | npm包 |
正文
connect ETIMEDOUT
预编译二进制文件下载镜像切换为国内源,在系统变量中设置:ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/
,设置后重新打开命令行执行npm install --save-dev electron
即可。
sill idealTree buildDeps
设置代理但未生效,取消之前的代理
# 设置代理
# npm config set proxy http://127.0.0.1:8080
# npm config set https-proxy http://127.0.0.1:8080
# 获取代理、取消代理
npm config get proxy
npm config rm proxy
npm config rm https-proxy
标签:npm,buildDeps,代理,Electron,connect,https,config,proxy
From: https://www.cnblogs.com/xiaqiuchu/p/17986407