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?