From 5d62842aecc5f3d8c55a06827ce914912266ae6b Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 25 Feb 2026 18:23:06 -0500 Subject: [PATCH] fix: force fresh npm registry lookup for Claude Code install npm was serving a cached older version even with Docker no-cache. Clear npm cache and use --prefer-online to force a fresh registry fetch. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c31c50d..d7997fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,8 +64,8 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ # Install Happy Coder globally via npm (stable, rarely changes) RUN npm install -g happy-coder -# Install Claude Code globally via npm -RUN npm install -g @anthropic-ai/claude-code +# Install Claude Code globally via npm (--prefer-online ensures fresh registry lookup) +RUN npm cache clean --force && npm install -g @anthropic-ai/claude-code --prefer-online # Install OpenCode AI coding agent RUN OPENCODE_VERSION=$(curl -sL https://api.github.com/repos/opencode-ai/opencode/releases/latest | jq -r '.tag_name') && \