From 6043e5ed754fb2ad59769ff88c78caaf0c14cca0 Mon Sep 17 00:00:00 2001 From: zpc Date: Wed, 17 Jul 2024 00:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0yarn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 文档/前端/yarn.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 文档/前端/yarn.md diff --git a/文档/前端/yarn.md b/文档/前端/yarn.md new file mode 100644 index 0000000..0601c3e --- /dev/null +++ b/文档/前端/yarn.md @@ -0,0 +1,21 @@ +### +```sh +# 设置代理 +yarn config set proxy http://127.0.0.1:1080 +yarn config set https-proxy http://127.0.0.1:1080 +# 清除代理 +yarn config delete proxy +yarn config delete https-proxy +# 验证配置 +yarn config list +# 增加网络超时时间 +yarn install --network-timeout 100000 + +# 切换至官方镜像源 +yarn config set registry https://registry.yarnpkg.com +# 清理 Yarn 缓存 +yarn cache clean +yarn install + + +``` \ No newline at end of file