Skip to content

Why @google-cloud/storage is listed as an optional dependency? #1605

Discussion options

You must be logged in to vote

@akauppi's answer above is correct.
@google-cloud/storage and @google-cloud/firestore are optional by design. Developers relying on other APIs of the SDK can safely remove those dependencies if they are concerned about the SDK size etc. A fresh install of firebase-admin should pull the latest release (minor or patch version in the major version referenced in package.json) of the optional dependencies, but if you already have a package-lock file explicitly adding those dependencies or manually upgrading is the way to keep them updated. Just make sure firebase-admin is compatible with the version you use.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@akauppi
Comment options

@anantakrishna
Comment options

Comment options

You must be logged in to vote
3 replies
@anantakrishna
Comment options

@lahirumaramba
Comment options

@anantakrishna
Comment options

Answer selected by anantakrishna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants