赞
踩
$ git clone https://github.com/PanJiaChen/vue-element-admin
Cloning into 'vue-element-admin'...
fatal: unable to access 'https://github.com/PanJiaChen/vue-element-admin/': OpenSSL SSL_read: Connection was reset, errno 10054
原因:git需要设置代理
第一种办法:git需要设置代理,如vpn端口号为8888,则Git设置代理为:8888
git config --global http.proxy '127.0.0.1:8888'
git config --global https.proxy '127.0.0.1:8888'
第二种办法:直接取消代理
查看代理:
git config --global --get http.proxy
git config --global --get https.proxy
取消代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
然后在拉取代码,发现就可以了
$ git clone https://github.com/PanJiaChen/vue-element-admin
Cloning into 'vue-element-admin'...
remote: Enumerating objects: 11979, done.
remote: Total 11979 (delta 0), reused 0 (delta 0), pack-reused 11979
Receiving objects: 100% (11979/11979), 15.07 MiB | 90.00 KiB/s, done.
Resolving deltas: 100% (7365/7365), done.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。