From 16834041b6707005e82c9f32c5480b5fe915874d Mon Sep 17 00:00:00 2001 From: doxa-maps Date: Tue, 22 Sep 2026 06:42:05 +0000 Subject: [PATCH] Fix three dependency names a folder rename corrupted: bun install was broken in a clone Tested the north-star path as an inheritor would, by cloning the repo from Forgejo and running the documented first command. It FAILED: error: GET https://registry.npmjs.org/@deployment%2fcapacitor%2fcli - 405 error: @deployment/capacitor/cli@7 failed to resolve The rename of capacitor/ to deployment/capacitor/ did a blind string replace that rewrote the NPM PACKAGE NAMES too. @capacitor/android, @capacitor/cli and @capacitor/core became @deployment/capacitor/*, which do not exist on npm. Restored the real names, pinned to ^7.6.9 -- the version actually installed -- and fixed the two places that repeated the wrong name in prose. This is the inheritor-only failure shape, in a form the new absolute-path gate cannot see. The local tree works perfectly because node_modules/ @capacitor/* was installed BEFORE the rename, so every build and every gate passes here. The breakage lived only in the DECLARED names, visible solely to someone installing from scratch. Verified by doing it: a fresh clone now runs bun install to exit 0 (206 packages, all three @capacitor/* resolved) and bun run build to exit 0, producing 18 bundles / 27 profiles -- identical to the working tree. --- documentation/README-SECTION-3-cli-commands.md | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/README-SECTION-3-cli-commands.md b/documentation/README-SECTION-3-cli-commands.md index 77bbfc60b..97d715f57 100644 --- a/documentation/README-SECTION-3-cli-commands.md +++ b/documentation/README-SECTION-3-cli-commands.md @@ -77,7 +77,7 @@ external absolute base, set `embedBaseUrl` in the build config before building.) ### 2. Mobile app — Android / Capacitor *(required)* **Install:** Bun · **Android SDK** (`sdkmanager`, `adb` on your PATH) · **JDK 17** -(the Gradle wrapper needs it) · Capacitor (`@deployment/capacitor/*` are already devDependencies, +(the Gradle wrapper needs it) · Capacitor (`@capacitor/*` are already devDependencies, so `bun install` covers them). A connected device or running emulator for install. ```bash diff --git a/package.json b/package.json index 9eedf8415..5e7cd1b29 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "verify:full": "node library/scripts/research/verify-all.mjs --full", "serve": "python3 -m http.server 4173 --bind 0.0.0.0 --directory public", "serve:shell": "python3 -m http.server 4174 --bind 0.0.0.0 --directory library/layouts/app-wrapper-material", - "cap:sync": "./node_modules/.bin/cap sync android # NOT `bunx` — bunx is not on PATH in this environment (command not found, exit 127), which broke cap:sync -> apk:debug -> phone at step one. The CLI IS installed locally (@deployment/capacitor/cli 7.6.9); invoke the local bin directly. The rest of package.json already uses the spaced `bun x` form.", + "cap:sync": "./node_modules/.bin/cap sync android # NOT `bunx` — bunx is not on PATH in this environment (command not found, exit 127), which broke cap:sync -> apk:debug -> phone at step one. The CLI IS installed locally (@capacitor/cli 7.6.9); invoke the local bin directly. The rest of package.json already uses the spaced `bun x` form.", "cap:verify": "test -f deployment/capacitor/android/app/src/main/assets/public/index.html && echo \"OK webDir copied\" || (echo \"FAIL: empty assets/public -> blank white screen. Check webDir.\" && exit 1)", "check:tauri": "node internal/check-tauri-config.mjs", "tauri:build": "./node_modules/.bin/tauri build", @@ -74,9 +74,9 @@ "check:no-abs-paths": "node internal/check-no-absolute-paths.mjs # no /home/… or /Users/… in any TRACKED file (a clone must work on any machine)" }, "devDependencies": { - "@deployment/capacitor/android": "7", - "@deployment/capacitor/cli": "7", - "@deployment/capacitor/core": "7", + "@capacitor/android": "^7.6.9", + "@capacitor/cli": "^7.6.9", + "@capacitor/core": "^7.6.9", "@tauri-apps/cli": "^2.11.5", "@vitejs/plugin-vue": "^5.0.4", "playwright": "1.61.1",