firebase / firebase-admin-node

Firebase Admin Node.js SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
1.62k stars 369 forks source link

`firebase init` command initializes firebase-admin with wrong dependency version in package.json inside functions #2078

Open skhan75 opened 1 year ago

skhan75 commented 1 year ago

[READ] Step 1: Are you in the right place?

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Invalid version being created by firebase init command Screenshot from 2023-02-20 02-45-38

Steps to reproduce:

  1. Run firebase-init
  2. Select Configure functions in the CLI input
  3. Select npm install within the CLI and it will fail -- Reason --> invalid version for firebase-admin What happened? How can we make the problem occur? This could be a description, log/console output, etc.

Relevant Code:

// TODO(you): code here to reproduce the problem
lahirumaramba commented 1 year ago

The logs seems to be looking for a firebase-admin version 111.5.0, which does not exist. Could you confirm the firebase-admin version in the package.json in your functions directory?