首页 > 其他分享 >Electron RequestError: connect ETIMEDOUT 20.205.243.166:443

Electron RequestError: connect ETIMEDOUT 20.205.243.166:443

时间:2022-10-12 18:11:06浏览次数:62  
标签:243.166 mirrors 443 ELECTRON electron https npmmirror com ETIMEDOUT

问题描述
下载 electron 时,卡在了下载超时,换 github.com ip 无效、用梯子无效,直到官网这里找到了原因:

Mirror
You can use environment variables to override the base URL, the path at which to look for Electron binaries, and the binary filename. The URL used by @electron/get is composed as follows:

url = ELECTRON_MIRROR + ELECTRON_CUSTOM_DIR + '/' + ELECTRON_CUSTOM_FILENAME
1
For instance, to use the China CDN mirror:

ELECTRON_MIRROR="https://cdn.npm.taobao.org/dist/electron/"
1
解决办法
1、找国内镜像,比如npmmirror 中国镜像站:

electron 镜像: https://npmmirror.com/mirrors/electron/
1
2、设置:

# yarn
yarn config set electron_mirror https://npmmirror.com/mirrors/electron/

# npm
npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/
1
2
3
4
5
或者配置 npmrc
在项目根目录新建 .npmrc,内容:

electron_mirror=https://npmmirror.com/mirrors/electron/
————————————————
版权声明:本文为CSDN博主「大涛子」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_42840269/article/details/124094975

标签:243.166,mirrors,443,ELECTRON,electron,https,npmmirror,com,ETIMEDOUT
From: https://www.cnblogs.com/liagon/p/16785492.html

相关文章

  • [atARC148F]998244353 → 1000000007
    科技题蒙哥马利算法:求$a\cdotm^{-1}\mod\M$(其中$m^{-1}$为$m$模$M$的逆元)记$t=a\cdot\frac{m\cdotm^{-1}-1}{M}\mod\m$,则$a+tM\equiva(1+\frac{m\cdotm^{-1}-1}......
  • 2022-09-01 网站强制ctrl+f5刷新报错,只按f5刷新不报错,报错内容为443,但真实报错代码为4
    报错内容:NotFoundTherequestedURL/mallwasnotfoundonthisserver.ApacheServeratxxx.yyy.comPort443描述:如题。解决方案:在网站根目录添加一个文件.htacce......
  • GitHub无法访问、443 Operation timed out、OpenSSL SSL_connect: SSL_ERROR_SYSCALL
    很长时间没有使用GitHub了,心血来潮将本地的项目传送到GitHub上却发现不能正常工作。花了一上早上将问题解决了,于是将问题解决过程记录一下。首先出现的问题是Push代码到远......
  • git push gitee 443
    fatal:unabletoaccess'https://gitee.com/woyujiezhen/my-study3.git/':Failedtoconnecttogitee.comport443:Timedout 我也不知道是什么抽风了,gitpull都......
  • P8443 题解
    前言题目传送门!更好的阅读体验?普及组月赛第一题。别的题解语言有点高深,我补篇题解。思路显然,\(\lfloor\dfrac{l}{x}\rfloor,\lfloor\dfrac{l+1}{x}\rfloor,\cdot......
  • P1443 马的遍历
    P1443马的遍历分析:根据题意,本题用bfs求解,马每次有八个方位的走向,将步数初始化为-1,这样如果没有马跳到这个地方就直接输出-1,使用队列先进先出的特点,在马每跳到一个方位后......
  • 洛谷 P1443 马的遍历
    题目链接:https://www.luogu.com.cn/problem/P1443试题分析:题目是一个比较经典的广搜题,首先我们要读入长,宽,和马起点的坐标,然后将其压入队尾;在队列不为空时,一直取队首并将其......
  • 443端口
    443端口即网页浏览端口,主要是用于HTTPS服务,是提供加密和通过安全端口传输的另一种HTTP。在一些对安全性要求较高的网站,比如银行、证券、购物等,都采用HTTPS服务,这样在这些......
  • k8s集群不可用:The connection to the server 192.168.117.161:6443 was refused - did
    虚拟机非正常关机后,k8s集群不可用获取节点,报如下错,kubectlgetnode 查看env:env|grep-ikubernetes 查看docker状态:systemctlstatusdocker 查看kubelet......