Skip to content
Strata v1.2.6

2026-05-08: Fix tauri:dev astro command not found + release --no-push flag

1. npm run tauri:dev fails with sh: astro: command not found

Section titled “1. npm run tauri:dev fails with sh: astro: command not found”

The project is developed on two Macs (M3 Pro + M1 Max) with source synced via Google Drive offline mode.
When switching machines, Google Drive does not correctly replicate symlinks — node_modules/.bin/ entries arrive as empty/broken zero-byte symlinks on the second machine.

Root confirmation: front/node_modules/.bin/astro was a symlink pointing to "" (empty string, size 0).

Secondary issue: tauri-dev.sh had no npm install step (unlike tauri-build.sh), so it could not self-heal after a machine switch.

Also: the root package.json invoked all tauri scripts with sh scripts/tauri-*.sh, but the scripts use #!/usr/bin/env bash and bash-only features (pipefail). sh ignores the shebang.

release.mjs always pushed to remote after tagging. There was no way to bump versions, commit, and tag locally without immediately pushing.


  • Added npm ci 2>/dev/null || npm install for both front/ and backend/ before building.
  • Added Google Drive path detection: if REPO_ROOT contains Google Drive, a warning is printed to explain the symlink situation.
  • Changed sh scripts/tauri-*.shbash scripts/tauri-*.sh for all four tauri scripts so the #!/usr/bin/env bash shebang and pipefail are respected.
  • Added --no-push flag. When set, the script bumps all 6 version files, commits, and tags locally but skips both git push calls.
  • Prints manual push instructions when --no-push is used.
  • Documented the new --no-push flag.
  • Added “Multi-machine development” section explaining the Google Drive / symlink behavior and that tauri-dev.sh now auto-heals.

FileChange
scripts/tauri-dev.shnpm install before build + Google Drive warning
package.json (root)shbash for tauri scripts
scripts/release.mjs--no-push flag
docs/src/content/docs/versioning.mdDocument --no-push
docs/src/content/docs/desktopapp.mdMulti-machine development section