-
Notifications
You must be signed in to change notification settings - Fork 405
Closed
Labels
Description
[REQUIRED] Step 2: Describe your environment
- Operating System version: Mac OSX 15.1
- Firebase SDK version: 12
- Firebase Product: Functions & admin
- Node.js version: 18 (18.16)
- NPM version: 9.5.1
[REQUIRED] Step 3: Describe the problem
firebase-admin
has a new13.0.0
release: https://www.npmjs.com/package/firebase-admin- But if you try to use it with
firebase-functions
(latest release:6.1.0
), you get an npm error: https://www.npmjs.com/package/firebase-functions?activeTab=readme
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: firebase-functions@[6](https://github.com/orcalabs-dev/podcast-directory-management-tools/actions/runs/11891283442/job/33131715188?pr=161#step:5:7).1.0
npm error Found: [email protected]
npm error node_modules/firebase-admin
npm error firebase-admin@"^13.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer firebase-admin@"^11.10.0 || ^12.0.0" from [email protected]
npm error node_modules/firebase-functions
npm error firebase-functions@"^6.1.0" from the root project
npm error peer firebase-functions@">=4.9.0" from [email protected]
npm error node_modules/firebase-functions-test
npm error dev firebase-functions-test@"^3.3.0" from the root project
npm error
npm error Conflicting peer dependency: firebase-admin@12.[7](https://github.com/orcalabs-dev/podcast-directory-management-tools/actions/runs/11891283442/job/33131715188?pr=161#step:5:8).0
npm error node_modules/firebase-admin
npm error peer firebase-admin@"^11.10.0 || ^12.0.0" from [email protected]
npm error node_modules/firebase-functions
npm error firebase-functions@"^6.1.0" from the root project
npm error peer firebase-functions@">=4.[9](https://github.com/orcalabs-dev/podcast-directory-management-tools/actions/runs/11891283442/job/33131715188?pr=161#step:5:10).0" from [email protected]
npm error node_modules/firebase-functions-test
npm error dev firebase-functions-test@"^3.3.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
- This is because,
firebase-functions
has an explicit peer dependency on previous version offirebase-admin
:
Steps to reproduce:
- Add dependency on the latest
firebase-admin
andfirebase-functions
- Run
npm install
ben519, Stev3nsen, acestevent, joefhall, PaperMold and 3 moreben519 and m3lonius