yarn add firebase-tools code example
Example: install firebase-tools globally yarn
$ yarn global add firebase-tools
# After that execute this command :
# add this to ~/.bashrc or ~/.zshrc file
export PATH="$(yarn global bin):$PATH"
#and then run the command
$ firebase login