Use npm mirror for frontend dependencies

This commit is contained in:
王鹏
2026-10-10 11:49:42 +08:00
parent 4156fa6a8f
commit dd4763a4a7
2 changed files with 22 additions and 2 deletions

View File

@@ -110,7 +110,17 @@ def build_deployment_plan(scan: ScanResult, config: DeploymentConfig) -> list[De
steps.append(
DeploymentStep(
f"安装{display_name}依赖",
[npm_command, "install", "--no-audit", "--no-fund", "--progress=false"],
[
npm_command,
"install",
"--registry=https://registry.npmmirror.com",
"--strict-ssl=false",
"--legacy-peer-deps",
"--no-audit",
"--no-fund",
"--progress=false",
"--loglevel=verbose",
],
frontend.path,
f"安装{display_name} package.json 中的依赖",
kind="frontend_install",