firebasenpmcloud-storagenpm-update

Which package versions can I use in Firebase?


I want to update npm packages in a Firebase project. However I am lost about the fixed versions in packages.json. I guess they are there for a reason, but I have no idea why they are there now. Maybe I installed them to get around a bug? Or, is it perhaps something handled another way behind my back?

For example if I run npm outdated I found this (and 7 more):

@google-cloud/storage    1.7.0   1.7.0   3.2.1  functions

And in packages.json then of course this:

"@google-cloud/storage": "^1.7.0",

Can I just replace it with this and run npm update:

"@google-cloud/storage": "*",

Solution

  • The package.json contains the packages that you installed and the version of these packages.

    To update do the following:

    npm install firebase-functions@latest firebase-admin@latest --save
    npm install @google-cloud/storage@latest --save