sudo npm install firebase-tools code example
Example 1: angular install firebase tools
npm install -g firebase-tools
Example 2: 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