Firebase-functions: Peer Dependency Issue

Created on 31 May 2019  路  5Comments  路  Source: firebase/firebase-functions

Related issues

[REQUIRED] Version info

node:
v8.12.0

firebase-functions:
2.3.1
firebase-tools:
6.10.0

firebase-admin:
8.0.0

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

When I upgraded firebase-admin and firebase-functions, this is the error I get
npm WARN [email protected] requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

[REQUIRED] Expected behavior

[REQUIRED] Actual behavior

Were you able to successfully deploy your functions?

Yes

needs-triage

Most helpful comment

@keithnbrown v3 has been released, so the versioning should be compatible now if you do npm install firebase-functions@latest firebase-admin@latest --save.

All 5 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

Hi @h36ahmed this will be fixed in the next major release of functions SDK. Admin SDK has dropped support for Node 6 in their latest release (8.0.0), and we cannot depend on that without dropping Node 6 support. Please use admin v7 for now.

thank you for replying! Will do.

What's the ETA on the next version of functions SDK? as i was struggling with this exact issue until i found this issue ticket.

Probably worth noting that this will be caused if you follow the instructions at https://firebase.google.com/docs/functions/get-started and run the command "npm install firebase-functions@latest firebase-admin@latest --save" as instructed under heading "2 - Set up Node.js and the Firebase CLI"

@keithnbrown v3 has been released, so the versioning should be compatible now if you do npm install firebase-functions@latest firebase-admin@latest --save.

Was this page helpful?
0 / 5 - 0 ratings