npm install @angular/fire firebase –save

Shell
npm install firebase @angular/fire
Source

Also in Shell: