From ecba7681c9cbfcb0938a3a5c01dcb54b6438a379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=AB=E8=84=82=E8=82=AA=E7=9A=84=E6=B2=99=E8=8C=B6?= =?UTF-8?q?=E9=85=B1?= Date: Sun, 4 Oct 2020 23:19:22 +0800 Subject: [PATCH] Update readme.md --- 下载加速Clone、AWS、Git镜像/readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/下载加速Clone、AWS、Git镜像/readme.md b/下载加速Clone、AWS、Git镜像/readme.md index 3aa7d38..719b912 100644 --- a/下载加速Clone、AWS、Git镜像/readme.md +++ b/下载加速Clone、AWS、Git镜像/readme.md @@ -1,4 +1,4 @@ -***短链接:http://8rr.co/6stM*** + ### git下载 @@ -6,6 +6,13 @@ https://npm.taobao.org/mirrors/git-for-windows/ +npm/yarn下载组件方面,均可使用淘宝镜像 + +``` +npm install -g cnpm --registry=https://registry.npm.taobao.org +yarn config set registry https://registry.npm.taobao.org +``` + ### host 将以下host复制进`C:\Windows\System32\drivers\etc\hosts`,再使用命令行输入`ipconfig /flushdns`刷新dns缓存。目的:此host只为解除红色镰刀锤对GitHub(asw、ssh)下载及克隆的网络限制干扰