#12466 caf9b11 Thanks @petebacondarwin! - Add WRANGLER_CACHE_DIR environment variable and smart cache directory detection
Wrangler now intelligently detects where to store cache files:
WRANGLER_CACHE_DIR env var if setnode_modules/.cache/wrangler or .wrangler/cache)node_modules/.cache/wrangler if node_modules exists.wrangler/cacheThis improves compatibility with Yarn PnP, pnpm, and other package managers that don't use traditional node_modules directories, without requiring any configuration.
Fetched March 31, 2026