From dcc8423c20d9c8bcb98ca753f9f173cd0055176c Mon Sep 17 00:00:00 2001 From: Dave Dittrich Date: Thu, 23 Jul 2026 14:56:55 -0700 Subject: [PATCH] fix: drop prefer-offline from .npmrc to avoid stale-cache ETARGET prefer-offline bypasses staleness checks on cached registry metadata, so npm resolves against a packument that can predate versions the lockfile requires. With esbuild pinned to ^0.28.1 (overrides, #2493) and a cache topping out at 0.27.2, npm install fails: npm error code ETARGET npm error notarget No matching version found for esbuild@^0.28.1 The failure is silent and machine-dependent: it only reproduces on clones whose cache went stale before the pin landed, so CI stays green while contributors hit a hard install error. Co-Authored-By: Claude Opus 4.8 (1M context) --- .npmrc | 3 --- 1 file changed, 3 deletions(-) diff --git a/.npmrc b/.npmrc index 052d467927..f66d61a862 100644 --- a/.npmrc +++ b/.npmrc @@ -1,5 +1,2 @@ # Prevent peer dependency warnings during installation legacy-peer-deps=true - -# Improve install performance -prefer-offline=true