0

On firebase deploy I receive the error:

⚠ functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.

followed by a long list of

⚠ functions: Please note that there will be breaking changes when you upgrade.

[2022-11-28T21:50:38.780Z] @firebase/database: FIREBASE WARNING: {"code":"app/invalid-credential","message":"Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND"."}

A similar question is asked but their issue was that they weren't able to figure out how to cd to the functions folder... I was able to cd to the functions folder and have tried all suggested solutions.

I have tried cd functions to navigate to my functions directory and run npm install --save firebase-functions@latest but on deploy I receive the same error.

I have run the installs with sudo.

I have run npm i -g firebase-tools in the top-level folder.

Someone on another thread suggested running sudo npm i -g firebase-admin and I tried this as well.

Nothing works. Any ideas? Also, is the second error a second error, or a result of the first?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Jeremy Irons
  • 472
  • 5
  • 15
  • 2
    I suggest providing the steps starting from a fresh project installation, showing the versions of the CLI (run `firebase --version`) and all npm packages (from package.json) that you're using at each stage. There should be enough information that anyone can follow along with the same set of commands and observations. We can't really see inside your project to see what's there, so it's better if you start from a known state that anyone can use. – Doug Stevenson Nov 29 '22 at 00:19

0 Answers0