添加yarn

This commit is contained in:
zpc 2024-07-17 00:05:38 +08:00
parent 8c9ad43230
commit 6043e5ed75

21
文档/前端/yarn.md Normal file
View File

@ -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
```