The Firebase JavaScript SDK implements the client-side libraries used by applications using Firebase services . This SDK is distributed via: CDN. npm package.
Read moreHow do I change Firebase version?
So you can basically run npm i -g firebase-tools to update the version of your firebase-tools installation to the latest version.
Read more