From b35ac7d137404f49c95a7f47ddd007c35bef5899 Mon Sep 17 00:00:00 2001 From: David Young Date: Tue, 10 Nov 2026 12:54:55 -0700 Subject: [PATCH] Install srt without running its dependencies' install scripts srt 0.0.82 optionally depends on @microsoft/mxc-sdk, for Windows sandboxes, whose koffi and node-pty have install scripts that npm 12 blocks, so every update warned about them (report CD-GB29BZ). srt has no install scripts of its own and loads that SDK only on Windows, so --ignore-scripts drops the warning and changes nothing on Linux. Co-Authored-By: Claude Opus 5.5 --- sandbox/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sandbox/setup.sh b/sandbox/setup.sh index 798fa98..92a8926 100644 --- a/sandbox/setup.sh +++ b/sandbox/setup.sh @@ -8,9 +8,11 @@ COREDESKTOP="$HOME/.local/share/coredesktop" STATUS=0 -# npm's global prefix is under /usr, so install to ~/.local; srt lands in ~/.local/bin +# npm's global prefix is under /usr, so install to ~/.local; srt lands in ~/.local/bin. +# srt has no install scripts of its own; the ones npm would otherwise warn it +# blocked belong to the Windows-only @microsoft/mxc-sdk it optionally depends on. echo "Installing the sandbox runtime (srt)..." -npm install --global --prefix "$HOME/.local" --no-fund --no-audit @anthropic-ai/sandbox-runtime || STATUS=1 +npm install --global --prefix "$HOME/.local" --no-fund --no-audit --ignore-scripts @anthropic-ai/sandbox-runtime || STATUS=1 # --non-interactive skips Hermes' setup questions and its background gateway # service; `configure hermes` chooses a model provider afterwards