Skip to content

v2.1.2 - Installer no longer aborts on npm warnings

Choose a tag to compare

@SlavaSexton SlavaSexton released this 01 Jul 07:33

Patch release: fixes the Windows installer aborting on a harmless npm warning (reported by an installing user).

Fixed

  • Windows installer no longer aborts on a non-fatal npm warning. With $ErrorActionPreference = "Stop", PowerShell 5.1 turns a native command's stderr (piped 2>&1 | Out-Null) into a terminating NativeCommandError. So an npm warn deprecated prebuild-install@7.1.3 during npm install -g comfyui-mcp aborted the whole install. shared/install_shared.ps1 now runs npm / git / python through a Native helper that sets $ErrorActionPreference to Continue for the call and gates success on the real exit code (genuine failures still stop the install), and passes npm --loglevel=error.
  • Reproduced on PowerShell 5.1 (& ... 1>&2 ... 2>&1 | Out-Null under Stop threw NativeCommandError) and confirmed the fix tolerates the warning while still catching a non-zero exit.