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