npm install -g firebase-tools
on linux: curl -sL https://firebase.tools | bash update with: curl -sL firebase.tools | upgrade=true bash