3

I am facing this issue while deploying my firebase function through Git Actions

Firebase CLI v10.0.1 is incompatible with Node.js v10.24.1 Please upgrade Node.js to version >= 12

My Firebase version:9.16.6 Node version : 14.15.4..


Edit: Here is the dependencies section of my package.json file.

"dependencies": {
  "axios": "^0.21.1",
  "cryptr": "^6.0.2",
  "dotenv": "^10.0.0",
  "fetch": "^1.1.0",
  "firebase": "^8.10.0",
  "firebase-admin": "^9.8.0",
  "firebase-functions": "^3.16.0",
  "lodash": "^4.17.21",
  "node-fetch": "^2.6.1",
  "request": "^2.88.2",
  "request-promise": "^4.2.6"
},
"devDependencies": {
  "eslint": "^7.6.0",
  "eslint-config-google": "^0.14.0",
  "firebase-functions-test": "^0.2.0"
} 
Arnav Thorat
  • 3,078
  • 3
  • 8
  • 33
Soniya Biyani
  • 49
  • 1
  • 2
  • The same message just happened to my latest build on circleci. – Ousmane Jan 07 '22 at 08:28
  • Can you share your `package.json`, or at least the `dependencies` section from it? – Mureinik Jan 07 '22 at 15:09
  • Ok...Will share package.json with you @Mureinik – Soniya Biyani Jan 11 '22 at 10:31
  • "dependencies": { "axios": "^0.21.1", "cryptr": "^6.0.2", "dotenv": "^10.0.0", "fetch": "^1.1.0", "firebase": "^8.10.0", "firebase-admin": "^9.8.0", "firebase-functions": "^3.16.0", "lodash": "^4.17.21", "node-fetch": "^2.6.1", "request": "^2.88.2", "request-promise": "^4.2.6" }, "devDependencies": { "eslint": "^7.6.0", "eslint-config-google": "^0.14.0", "firebase-functions-test": "^0.2.0" }, – Soniya Biyani Jan 11 '22 at 10:38

3 Answers3

1

i added https://github.com/actions/setup-node to my workflow (this probably isnt required). And changed w9jds/firebase-action@x.x.x to w9jds/firebase-action@master (Changed specific version to master`. This fixed it for me. I hope it works!

0

Check node version in circleci or any other that you are using. I got same exact error and upgraded node version in .circleci/config.yml and it's working now.

Varun
  • 1
-1

I solved this by downloading and installing the newest version of Node.js on my PC from nodejs.org