[GH-ISSUE #1397] [Issue]: start-termux.sh fails to install native dependencies required for 'sharp' build #696

Closed
opened 2026-10-20 17:32:00 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @vanta-jack on GitHub (May 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1397


name: Issue report
about: Report a bug, regression, or usability problem
title: "[Issue]: start-termux.sh fails to install native dependencies required for 'sharp' build"
labels: "bug"
assignees: ""

Summary

start-termux.sh fails to ensure libvips and pkg-config are installed, causing pnpm install to crash when building the sharp native module on Android/Termux. This results in an incomplete installation where tsc and other binaries are missing from node_modules/.bin.

Expected behavior

start-termux.sh should verify and install all necessary system-level dependencies (libvips, pkg-config, etc.) required for the workspace's native modules to compile successfully on Android.

Actual behavior

The script only installs git, leading to a compilation failure for sharp. pnpm install terminates prematurely, leaving the workspace in a broken state with unlinked binaries (e.g., tsc: not found).

Steps to reproduce

  1. Perform a fresh clone on a Termux environment.
  2. Run ./start-termux.sh.
  3. Observe the sharp build failure during the dependency installation phase.
  4. Observe the subsequent sh: 1: tsc: not found error when the script attempts to build the shared package.

Environment

  • Marinara Engine version: 1.6.1
  • Install type: termux
  • OS + version: Android (Termux)
  • Browser or app shell: N/A

Logs, screenshots, or video

node_modules/.pnpm/sharp@0.34.5/node_modules/sharp: Running install script, failed in 4.8s
.../sharp@0.34.5/node_modules/sharp install$ node install/check.js || npm run build
│ > sharp@0.34.5 build
│ > node install/build.js
│ sharp: Attempting to build from source via node-gyp
│ sharp: See https://sharp.pixelplumbing.com/install#building-from-source
│ sharp: Please add node-addon-api to your dependencies
└─ Failed in 4.8s at .../node_modules/.pnpm/sharp@0.34.5/node_modules/sharp
 ELIFECYCLE  Command failed with exit code 1.

Additional context

Manually installing libvips and pkg-config and setting SHARP_FORCE_GLOBAL_LIBVIPS=1 resolves the issue.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @vanta-jack on GitHub (May 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1397 --- name: Issue report about: Report a bug, regression, or usability problem title: "[Issue]: start-termux.sh fails to install native dependencies required for 'sharp' build" labels: "bug" assignees: "" --- ## Summary `start-termux.sh` fails to ensure `libvips` and `pkg-config` are installed, causing `pnpm install` to crash when building the `sharp` native module on Android/Termux. This results in an incomplete installation where `tsc` and other binaries are missing from `node_modules/.bin`. ## Expected behavior `start-termux.sh` should verify and install all necessary system-level dependencies (`libvips`, `pkg-config`, etc.) required for the workspace's native modules to compile successfully on Android. ## Actual behavior The script only installs `git`, leading to a compilation failure for `sharp`. `pnpm install` terminates prematurely, leaving the workspace in a broken state with unlinked binaries (e.g., `tsc: not found`). ## Steps to reproduce 1. Perform a fresh clone on a Termux environment. 2. Run `./start-termux.sh`. 3. Observe the `sharp` build failure during the dependency installation phase. 4. Observe the subsequent `sh: 1: tsc: not found` error when the script attempts to build the shared package. ## Environment - Marinara Engine version: 1.6.1 - Install type: termux - OS + version: Android (Termux) - Browser or app shell: N/A ## Logs, screenshots, or video ``` node_modules/.pnpm/sharp@0.34.5/node_modules/sharp: Running install script, failed in 4.8s .../sharp@0.34.5/node_modules/sharp install$ node install/check.js || npm run build │ > sharp@0.34.5 build │ > node install/build.js │ sharp: Attempting to build from source via node-gyp │ sharp: See https://sharp.pixelplumbing.com/install#building-from-source │ sharp: Please add node-addon-api to your dependencies └─ Failed in 4.8s at .../node_modules/.pnpm/sharp@0.34.5/node_modules/sharp  ELIFECYCLE  Command failed with exit code 1. ``` ## Additional context Manually installing `libvips` and `pkg-config` and setting `SHARP_FORCE_GLOBAL_LIBVIPS=1` resolves the issue. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#696
No description provided.