From f3ae54c51e2ca851737f27045bd9ba60391f928d Mon Sep 17 00:00:00 2001 From: whp98 Date: Wed, 22 Nov 2023 23:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=8D=9A=E5=AE=A2=EF=BC=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4:2023-11-22=2023:14:44?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/DEV-TIPS/China-mirror.md | 38 +++++++++++++++++++++++++++++++ docs/DEV-TIPS/index.md | 3 +++ docs/DEV-TIPS/npm-config-china.md | 15 ++++++++++++ docs/index.md | 1 + 4 files changed, 57 insertions(+) create mode 100644 docs/DEV-TIPS/China-mirror.md create mode 100644 docs/DEV-TIPS/index.md create mode 100644 docs/DEV-TIPS/npm-config-china.md diff --git a/docs/DEV-TIPS/China-mirror.md b/docs/DEV-TIPS/China-mirror.md new file mode 100644 index 0000000000..99375cbd0b --- /dev/null +++ b/docs/DEV-TIPS/China-mirror.md @@ -0,0 +1,38 @@ +# China-mirror 中国镜像 + +## AliYun mirror + +https://developer.aliyun.com/mirror/ + +## NetEase + +https://mirrors.163.com/ + +## tencent + +https://mirrors.tencent.com/ + +## bytedance + +https://mirrorvolc.volces.com/ + + +## huawei cloud + +https://mirrors.huaweicloud.com/home + + +## tsinghua +https://mirrors.tuna.tsinghua.edu.cn/ + +## ustc +http://mirrors.ustc.edu.cn/ + +## bjtu +https://mirror.bjtu.edu.cn/ + +## zju +http://mirrors.zju.edu.cn/ + +## neusoft +http://mirrors.neusoft.edu.cn/ diff --git a/docs/DEV-TIPS/index.md b/docs/DEV-TIPS/index.md new file mode 100644 index 0000000000..f5ab974c38 --- /dev/null +++ b/docs/DEV-TIPS/index.md @@ -0,0 +1,3 @@ +# DEV-TIPS +- [China-mirror 中国镜像](./China-mirror.md) +- [npm config China](./npm-config-china.md) diff --git a/docs/DEV-TIPS/npm-config-china.md b/docs/DEV-TIPS/npm-config-china.md new file mode 100644 index 0000000000..30198ea1cc --- /dev/null +++ b/docs/DEV-TIPS/npm-config-china.md @@ -0,0 +1,15 @@ +# npm config China + +中国开发者的npm配置 + +```shell +npm config set registry https://registry.npmmirror.com +pm set audit false +``` + +或者使用nrm自由切换镜像 + +[nrm](https://www.npmjs.com/package/nrm) +```shell +npm install -g nrm +``` diff --git a/docs/index.md b/docs/index.md index 733c4b5aa7..790b46851c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,6 @@ # 目录 - [VitePress 博客](./Readme.md) +- [DEV-TIPS](./DEV-TIPS/) - [Git版本管理](./Git版本管理/) - [Java语言相关](./Java语言相关/) - [Linux系统](./Linux系统/)