install firebase yarn code example
Example 1: install firebase npm
$ npm init
$ npm install --save firebase
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
Example 3: install firebase npm
$ npm init
$ npm install --save firebase