Seltsam. Wenn ich raten sollte, würde ich tippen, dass diese magische Fortschritsbalken-Ausgabe da etwas kaputt macht…
Nicht ganz ernst gemeint: Wenn man die hier als npmFunction.bat
dazu legt…
@echo off
REM Partially from https://stackoverflow.com/a/935681
set RESTVAR=%1
shift
:loop1
if "%1"=="" goto after_loop
set RESTVAR=%RESTVAR% %1
shift
goto loop1
:after_loop
echo %RESTVAR%
call %RESTVAR%
… und dann in der Haupt-BAT schreibt
@echo on
call npmFunction npm install cordova-plugin-build-architecture
call npmFunction npm install -g @angular/cli
call npmFunction npm install -g @ionic/cli
pause
…dann gibt er es aus. Aber eigentlich sollte man sich sowas nicht antun müssen…