[GH-ISSUE #5473] [Issue]: Standalone Windows pnpm.exe is launched through Node #3037

Closed
opened 2026-10-21 05:59:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5473

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Windows with a standalone pnpm installation, launcher-owned commands can attempt to run the native pnpm.exe binary through Node and fail before the app starts.

Expected behavior

Marinara should invoke native Windows pnpm executables through ComSpec while preserving the current Node runner for JavaScript pnpm CLIs and extensionless POSIX pnpm launchers.

Actual behavior

When npm_execpath points to native pnpm.exe, resolvePnpmRunner can produce node pnpm.exe. Node parses the PE binary as JavaScript and exits with SyntaxError: Invalid or unexpected token.

Steps to reproduce

  1. Install standalone pnpm on Windows so npm_execpath points to pnpm.exe.
  2. Start a repository-owned launcher path such as the dev server or Playwright webServer.
  3. Observe Node attempting to execute pnpm.exe as JavaScript.

Environment

  • Marinara Engine version: staging before PR #5468
  • Install type: source with standalone pnpm
  • OS + version: Windows; exact version not provided
  • Browser or app shell: launcher/dev process; browser not applicable

Logs, screenshots, or video

Reported failure: SyntaxError: Invalid or unexpected token while Node reads the native PE header.

Additional context

PR #5468 contains the focused fix and regression coverage. The related capability-runtime junction snapshot failure is already fixed separately.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5473 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Windows with a standalone pnpm installation, launcher-owned commands can attempt to run the native pnpm.exe binary through Node and fail before the app starts. ## Expected behavior Marinara should invoke native Windows pnpm executables through ComSpec while preserving the current Node runner for JavaScript pnpm CLIs and extensionless POSIX pnpm launchers. ## Actual behavior When npm_execpath points to native pnpm.exe, resolvePnpmRunner can produce node pnpm.exe. Node parses the PE binary as JavaScript and exits with SyntaxError: Invalid or unexpected token. ## Steps to reproduce 1. Install standalone pnpm on Windows so npm_execpath points to pnpm.exe. 2. Start a repository-owned launcher path such as the dev server or Playwright webServer. 3. Observe Node attempting to execute pnpm.exe as JavaScript. ## Environment - Marinara Engine version: staging before PR #5468 - Install type: source with standalone pnpm - OS + version: Windows; exact version not provided - Browser or app shell: launcher/dev process; browser not applicable ## Logs, screenshots, or video Reported failure: SyntaxError: Invalid or unexpected token while Node reads the native PE header. ## Additional context PR #5468 contains the focused fix and regression coverage. The related capability-runtime junction snapshot failure is already fixed separately. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:59:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3037
No description provided.