Doug Stevenson
Doug Stevenson

Reputation: 317467

Firebase CLI v7.0.0 is incompatible with Node.js v6.17.1 Please upgrade Node.js to version >= 8.0.0

I upgraded my Firebase CLI (firebase-tools) to version 7.0.0. Now, when I run it, it gives me a message:

Firebase CLI v7.0.0 is incompatible with Node.js v6.17.1 Please upgrade Node.js to version >= 8.0.0

How do I fix this?

Upvotes: 10

Views: 23965

Answers (4)

Abhishek Mishra
Abhishek Mishra

Reputation: 11

Problem: Firebase CLI v11.23.1 is incompatible with Node.js v14.17.0 Please upgrade Node.js to version ^14.18.0 || >=16.4.0

solution:

  1. Just install the latest version - https://nodejs.org/en/download/
  2. Search environment variable in your device and click on it
  3. Right click on path click add paste this --> C:\Program Files\nodejs
  4. Save click ok
  5. Close your code editor
  6. Reopen your code editor

it worked for me

Upvotes: 1

Jahangir
Jahangir

Reputation: 167

Problem:

Firebase CLI v11.0.0 is incompatible with Node.js v14.17.5
Please upgrade Node.js to version >= 14.18.0
just install,

  1. "npm install -g [email protected]"
  2. "firebase init"
  3. "firebase deploy" and it's solved.

Upvotes: 15

Hasan Mahmud
Hasan Mahmud

Reputation: 1

You can simply uninstall your node js from your pc and download current latest version of node js from https://nodejs.org/en/download/current and than install it.

Upvotes: 0

Doug Stevenson
Doug Stevenson

Reputation: 317467

With version 7.0.0, the Firebase CLI dropped support for node 6. You will need to upgrade your local node version to at least version 8. (8.0.0 actually has bugs - you should use something more modern.)

Personally, I recommend using nvm to install and run node, as it's easy to install and upgrade, and doesn't require root access to change system packages.

Upvotes: 5

Related Questions