npm ERR! EEXIST: file already exists npm ERR! File exists: /usr/local/bin/firebase npm ERR! Remove the existing file and try again, or run npm npm ERR! with –force to overwrite files recklessly.
Did you get this error message?
Well, this seems to work in 2022:
curl -sL firebase.tools | upgrade=true bash
via here