diff --git a/Frontend/scripts/compose-dev.sh b/Frontend/scripts/compose-dev.sh index e552dad..32e8d6a 100755 --- a/Frontend/scripts/compose-dev.sh +++ b/Frontend/scripts/compose-dev.sh @@ -16,8 +16,8 @@ find .output -mindepth 1 -maxdepth 1 -exec rm -rf {} + || true rm -rf node_modules/.cache node_modules/.vite # Install deps (container starts from a clean image). -# npm ci is unstable in this workspace due lock drift in transitive deps. -npm install +# This workspace has mixed Apollo/Nuxt peer graphs; keep install deterministic in Docker. +npm install --legacy-peer-deps # sharp is a native module and can break when cached node_modules were installed # for a different CPU variant (for example arm64v8). Force a local rebuild. diff --git a/Frontend/scripts/compose-worker.sh b/Frontend/scripts/compose-worker.sh index c155cb0..25daabc 100644 --- a/Frontend/scripts/compose-worker.sh +++ b/Frontend/scripts/compose-worker.sh @@ -10,7 +10,7 @@ flock 9 # Worker container starts from clean image. # Install deps without frontend postinstall hooks (nuxt prepare) to keep worker lean/stable. -npm install --ignore-scripts +npm install --ignore-scripts --legacy-peer-deps ARCH="$(uname -m)" if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then npm rebuild sharp --platform=linux --arch=arm64v8 \