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
Have you tried npm update -g firebase-tools? This worked for me.
npm update -g firebase-tools