Firebase · sdk · fg-0193

npm install fails with ERESOLVE when adding firebase-admin 14 to a Cloud Functions project

If you see ERESOLVE unable to resolve dependency tree, the cause and the fix for Firebase are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
ERESOLVE unable to resolve dependency treeCould not resolve dependency: peer firebase-admin@"^11.10.0 || ^12.0.0 || ^13.0.0" from firebase-functions@7.2.5firebase deploy predeploy npm ci step fails after bumping firebase-admin
Cause
firebase-functions declares the firebase-admin majors it supports as a peer range, and that range lagged the firebase-admin 14 release by about six weeks.
Fix
Upgrade firebase-functions to 7.3.0 or later together with firebase-admin 14. Avoid legacy-peer-deps as a permanent fix.
Apply
npm install firebase-functions@^7.3.0 firebase-admin@^14 # functions/package.json engines must also be node 22 or later for firebase-admin 14
Affected
firebase-functions 7.2.x and earlier with firebase-admin 14.x; fixed in firebase-functions 7.3.0 (July 2026)
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun