Firebase CLI v11.1.0 is incompatible with Node.js v16.1.0

3.3k views Asked by At

I am using Google Cloud Shell Editor to run my Firebase+React application. When I run Firebase CLI i got this:

Firebase CLI v11.1.0 is incompatible with Node.js v16.1.0 Please upgrade Node.js to version ^14.18.0 || >=16.4.0

If I update

npm install -g firebase-tools

I got this

Firebase CLI v11.2.0 is incompatible with Node.js v16.1.0 Please upgrade Node.js to version ^14.18.0 || >=16.4.0

2

There are 2 answers

2
Jorge Montalvão On

Run the command line below

nvm install 16.4.0

And it works for me ;-)

enter image description here

0
Lenin Gonzalez On

i used npm i -g [email protected] its compatible with node 16.14.0. that works for me