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