i am windows user and trying to update firebase version using npm install -g firebase-tools but when i run firebase --version it shows the sam
npm update -g firebase-tools
or
npm install -g firebase-tools@3.12.0 to install a specific version
npm install -g firebase-tools@3.12.0
And make sure to restart your terminal/IDE otherwise, it won't take effect.