[GH-ISSUE #7178] [Issue]: start-termux.sh's supportedArchitectures lines in .npmrc are ignored by pnpm 10 #4008

Closed
opened 2026-10-21 06:09:31 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Android, start-termux.sh appends supportedArchitectures.os[]=… / supportedArchitectures.cpu[]=… lines (including wasm32) to .npmrc so pnpm installs Linux and WebAssembly optional binaries. pnpm 10.34.5 (our pinned version) ignores these keys in .npmrc. It reads supportedArchitectures only from pnpm-workspace.yaml, the pnpm field of package.json, or the --os / --cpu / --libc CLI flags. So on Termux the effective target stays android/arm64, and the "platform fix" block in start-termux.sh does nothing.

Expected behavior

The architectures the launcher asks for are the ones pnpm installs, or the block is removed if it is not needed.

Actual behavior

Found while investigating #7173. On desktop, an install with those .npmrc lines still installed @img/sharp-darwin-arm64 and skipped @img/sharp-linux-arm64. Passing --os linux --cpu arm64 --cpu wasm32 on the command line did change what was installed.

Steps to reproduce

  1. Append the lines from start-termux.sh (the NPMRC_MARKER block plus supportedArchitectures.cpu[]=wasm32) to .npmrc.
  2. Run pnpm install --frozen-lockfile.
  3. Check node_modules/.modules.yaml skipped and which @img/sharp-* packages were installed.

Environment

  • Marinara Engine version: 2.5.0 / staging
  • Install type: termux
  • OS + version: Android (reproduced on macOS with pnpm 10.34.5)
  • Browser or app shell: n/a

Additional context

  • Before changing anything, check whether Termux actually needs these binaries today (rollup, lightningcss and the Tailwind oxide for the client build; sharp now uses the WebAssembly package from regular dependencies). If it does, move the settings to the CLI flags in install_workspace_dependencies, or to pnpm-workspace.yaml scoped to Android. If it doesn't, delete the block and its TERMUX_FORCE_INSTALL trigger.
  • Not needed for #7173.
Originally created by @SpicyMarinara on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7178 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Android, `start-termux.sh` appends `supportedArchitectures.os[]=…` / `supportedArchitectures.cpu[]=…` lines (including `wasm32`) to `.npmrc` so pnpm installs Linux and WebAssembly optional binaries. pnpm 10.34.5 (our pinned version) ignores these keys in `.npmrc`. It reads `supportedArchitectures` only from `pnpm-workspace.yaml`, the `pnpm` field of `package.json`, or the `--os` / `--cpu` / `--libc` CLI flags. So on Termux the effective target stays `android`/`arm64`, and the "platform fix" block in `start-termux.sh` does nothing. ## Expected behavior The architectures the launcher asks for are the ones pnpm installs, or the block is removed if it is not needed. ## Actual behavior Found while investigating #7173. On desktop, an install with those `.npmrc` lines still installed `@img/sharp-darwin-arm64` and skipped `@img/sharp-linux-arm64`. Passing `--os linux --cpu arm64 --cpu wasm32` on the command line did change what was installed. ## Steps to reproduce 1. Append the lines from `start-termux.sh` (the `NPMRC_MARKER` block plus `supportedArchitectures.cpu[]=wasm32`) to `.npmrc`. 2. Run `pnpm install --frozen-lockfile`. 3. Check `node_modules/.modules.yaml` `skipped` and which `@img/sharp-*` packages were installed. ## Environment - Marinara Engine version: 2.5.0 / `staging` - Install type: termux - OS + version: Android (reproduced on macOS with pnpm 10.34.5) - Browser or app shell: n/a ## Additional context - Before changing anything, check whether Termux actually needs these binaries today (rollup, lightningcss and the Tailwind oxide for the client build; sharp now uses the WebAssembly package from regular dependencies). If it does, move the settings to the CLI flags in `install_workspace_dependencies`, or to `pnpm-workspace.yaml` scoped to Android. If it doesn't, delete the block and its `TERMUX_FORCE_INSTALL` trigger. - Not needed for #7173.
bsakaguchi 2026-10-21 06:09:31 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Oct 7, 2026):

Fixed on staging by #7198. Ships to main with the next promotion.

<!-- gh-comment-id:6029846936 --> @SpicyMarinara commented on GitHub (Oct 7, 2026): Fixed on `staging` by #7198. Ships to `main` with the next promotion.
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#4008
No description provided.