DashboardcliversionExists npm terminal failures

versionExists npm terminal failures

Category: gotcha
Confidence: 1.00
ID: 01a08b34-ccfb-77f3-9432-0da2ab7041db
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 1QLo0UWM3EmN2YDvF
Created: 2026-09-10 09:45:33
Updated: 2026-09-10 12:04:48

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 15h ago

Content

Trap: treating any unsuccessful npm response as version-not-found, or accepting malformed HTTP 200 metadata, looks convenient but hides registry failures and may start npm, pnpm, Bun, or Yarn with an untrusted target. Fix: return false only for 404, return true only for valid success metadata, and throw UpgradeError("network_error") for other statuses or the strict invalid-metadata error for malformed success; terminal probes must start no subprocess.

Move to: