npm i @angular/fire firebase code example
Example 1: npm install @angular/fire firebase –save
npm install firebase @angular/fire
Example 2: install angular fire
ng add @angular/fire
npm install firebase @angular/fire
ng add @angular/fire