Vue安装时报错Failed to download repo vuejs-templates/webpack-simple: connect ETIMEDOUT 192.30.253.113:443
原因是因为github的问题
1.打开终端(cmd),输入命令:ping 192.30.253.112 发现连接超时;输入命令:ping github.com 显示超时。
2.打开 hosts文件,地址:C:\Windows\System32\drivers\etc 看是否是默认配置。默认配置如下:

如果不是,还原成默认配置。
3.看自己的ip地址(我的是联通的):

4.在终端输入命令:ping github.com 如果还是超时,则打开http://ping.chinaz.com/https://github.com,搜索github的ip地址,

查询结果:

然后在hosts文件中添加:
192.30.253.112 github.com
151.101.88.249 github.global.ssl.fastly.net
在终端输入 ping github.com,如果通了,就可以了
4.然后就可以正常操作了
网友评论