spawnSync('npm') without a shell fails with ENOENT on Windows because npm is npm.cmd, not npm.exe. The root dev script also used Unix VAR=value prefixes, which cmd.exe rejects.
Use shell: true when spawning npm on Windows, and set renderer URLs with cross-env.