$ 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