micro-fix(quickstart): correct npm invocation in powershell script (#6816)

- powerShell supports direct command invocation without requiring the call operator "&"
- the script used the call operator "&" to invoke `npm install` and `npm run build`
- which caused incorrect command parsing in PowerShell when combined with output redirection "2>&1"
- This resulted in unexpected errors such as "Unknown command: pm", even though the commands worked correctly when executed manually

- removed the unnecessary use of the call operator "&" and invoked npm commands directly
- npm commands now execute correctly within the script, aligning with standard PowerShell behavior and eliminating the parsing issue
This commit is contained in:
Leayx
2026-04-06 10:56:59 -03:00
committed by GitHub
parent 6024ae4241
commit 4b795584f6
+2 -2
View File
@@ -589,14 +589,14 @@ if ($NodeAvailable) {
Write-Host " Installing npm packages... " -NoNewline
Push-Location $frontendDir
try {
$installOutput = & npm install --no-fund --no-audit 2>&1
$installOutput = npm install --no-fund --no-audit 2>&1
if ($LASTEXITCODE -eq 0) {
Write-Ok "ok"
# Clean stale tsbuildinfo cache — tsc -b incremental builds fail
# silently when these are out of sync with source files
Get-ChildItem -Path $frontendDir -Filter "tsconfig*.tsbuildinfo" -ErrorAction SilentlyContinue | Remove-Item -Force
Write-Host " Building frontend... " -NoNewline
$buildOutput = & npm run build 2>&1
$buildOutput = npm run build 2>&1
if ($LASTEXITCODE -eq 0) {
Write-Ok "ok"
Write-Ok "Frontend built -> core/frontend/dist/"