. (Join-Path $PSScriptRoot 'common.ps1') $uiPath = Join-Path $repoPath 'yudao-ui-admin-vue3' if (-not (Test-Path -LiteralPath (Join-Path $uiPath 'package.json'))) { throw 'The maintained frontend source is missing: yudao-ui-admin-vue3.' } Push-Location $uiPath try { & npm.cmd exec --yes --package=pnpm@8.6.12 -- pnpm install --frozen-lockfile --reporter=append-only if ($LASTEXITCODE -ne 0) { throw 'Frontend dependency installation failed.' } } finally { Pop-Location } Write-Output 'Frontend dependencies are prepared in yudao-ui-admin-vue3. Run start-ui.ps1 or the IDEA frontend configuration.'