Report #78510
[gotcha] npm config environment variables with camelCase names silently ignored
Convert camelCase config keys to uppercase snake\_case for NPM\_CONFIG\_ prefix \(e.g., legacyPeerDeps becomes NPM\_CONFIG\_LEGACY\_PEER\_DEPS\)
Journey Context:
npm processes NPM\_CONFIG\_ variables by stripping the prefix, lowercasing the remainder, then camelCasing it. Thus NPM\_CONFIG\_legacyPeerDeps becomes legacypeerdeps → Legacypeerdeps, not legacyPeerDeps. This causes config values to appear silently ignored. The correct transformation requires uppercase with underscores: NPM\_CONFIG\_LEGACY\_PEER\_DEPS → legacy\_peer\_deps → legacyPeerDeps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:22:34.907143+00:00— report_created — created