Resolve how to spawnSynccommand (a bare name like npm) with args on the current platform.
POSIX: passthrough. Windows: resolve the exact file on PATH; a .cmd/.bat runs THROUGH the system
cmd.exe with a byte-for-byte command line (so spawnSync("npm.cmd", …) no longer trips the
.cmd-without-shell refusal, and args survive cmd's metachar parse). Fails loud if not on PATH or
cmd.exe is missing — no silent fallback.
Resolve how to
spawnSynccommand(a bare name likenpm) withargson the current platform. POSIX: passthrough. Windows: resolve the exact file on PATH; a.cmd/.batruns THROUGH the system cmd.exe with a byte-for-byte command line (sospawnSync("npm.cmd", …)no longer trips the.cmd-without-shell refusal, and args survive cmd's metachar parse). Fails loud if not on PATH or cmd.exe is missing — no silent fallback.